(function e(t,r){if(typeof exports==="object"&&typeof module==="object")module.exports=r();else if(typeof define==="function"&&define.amd)define("pdfjs-dist/build/pdf",[],r);else if(typeof exports==="object")exports["pdfjs-dist/build/pdf"]=r();else t["pdfjs-dist/build/pdf"]=t.pdfjsLib=r()})(this,function(){return function(e){var t={};function r(n){if(t[n]){return t[n].exports}var i=t[n]={i:n,l:false,exports:{}};e[n].call(i.exports,i,i.exports,r);i.l=true;return i.exports}r.m=e;r.c=t;r.d=function(e,t,n){if(!r.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:n})}};r.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})};r.t=function(e,t){if(t&1)e=r(e);if(t&8)return e;if(t&4&&typeof e==="object"&&e&&e.__esModule)return e;var n=Object.create(null);r.r(n);Object.defineProperty(n,"default",{enumerable:true,value:e});if(t&2&&typeof e!="string")for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n};r.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};r.d(t,"a",t);return t};r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};r.p="";return r(r.s=0)}([function(e,t,r){"use strict";r(1);var n="2.0.943";var i="dc98bf76";var a=r(332);var s=r(352);var o=r(367);var u=r(368);var l=r(353);var c=r(369);var f=r(358);var h=r(355);{var d=r(335);if(d()){var v=r(370).PDFNodeStream;s.setPDFNetworkStreamFactory(function(e){return new v(e)})}else if(typeof Response!=="undefined"&&"body"in Response.prototype&&typeof ReadableStream!=="undefined"){var p=r(373).PDFFetchStream;s.setPDFNetworkStreamFactory(function(e){return new p(e)})}else{var m=r(374).PDFNetworkStream;s.setPDFNetworkStreamFactory(function(e){return new m(e)})}}t.build=s.build;t.version=s.version;t.getDocument=s.getDocument;t.LoopbackPort=s.LoopbackPort;t.PDFDataRangeTransport=s.PDFDataRangeTransport;t.PDFWorker=s.PDFWorker;t.renderTextLayer=o.renderTextLayer;t.AnnotationLayer=u.AnnotationLayer;var g=r(375);t.SimpleLinkService=g;t.createPromiseCapability=a.createPromiseCapability;t.PasswordResponses=a.PasswordResponses;t.InvalidPDFException=a.InvalidPDFException;t.MissingPDFException=a.MissingPDFException;t.SVGGraphics=c.SVGGraphics;t.NativeImageDecoding=a.NativeImageDecoding;t.CMapCompressionType=a.CMapCompressionType;t.PermissionFlag=a.PermissionFlag;t.UnexpectedResponseException=a.UnexpectedResponseException;t.OPS=a.OPS;t.VerbosityLevel=a.VerbosityLevel;t.UNSUPPORTED_FEATURES=a.UNSUPPORTED_FEATURES;t.createValidAbsoluteUrl=a.createValidAbsoluteUrl;t.createObjectURL=a.createObjectURL;t.removeNullCharacters=a.removeNullCharacters;t.shadow=a.shadow;t.Util=a.Util;t.ReadableStream=a.ReadableStream;t.URL=a.URL;t.RenderingCancelledException=l.RenderingCancelledException;t.getFilenameFromUrl=l.getFilenameFromUrl;t.LinkTarget=l.LinkTarget;t.addLinkAttributes=l.addLinkAttributes;t.loadScript=l.loadScript;t.GlobalWorkerOptions=f.GlobalWorkerOptions;t.apiCompatibilityParams=h.apiCompatibilityParams},function(e,t,r){"use strict";r(2);r(327);r(329);if(global._babelPolyfill){throw new Error("only one instance of babel-polyfill is allowed")}global._babelPolyfill=true;var n="defineProperty";function i(e,t,r){e[t]||Object[n](e,t,{writable:true,configurable:true,value:r})}i(String.prototype,"padLeft","".padStart);i(String.prototype,"padRight","".padEnd);"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&i(Array,e,Function.call.bind([][e]))})},function(e,t,r){"use strict";r(3);r(51);r(52);r(53);r(54);r(56);r(59);r(60);r(61);r(62);r(63);r(64);r(65);r(66);r(67);r(69);r(71);r(73);r(75);r(78);r(79);r(80);r(84);r(86);r(88);r(91);r(92);r(93);r(94);r(96);r(97);r(98);r(99);r(100);r(101);r(102);r(104);r(105);r(106);r(108);r(109);r(110);r(112);r(114);r(115);r(116);r(117);r(118);r(119);r(120);r(121);r(122);r(123);r(124);r(125);r(126);r(131);r(132);r(136);r(137);r(138);r(139);r(141);r(142);r(143);r(144);r(145);r(146);r(147);r(148);r(149);r(150);r(151);r(152);r(153);r(154);r(155);r(157);r(158);r(160);r(161);r(167);r(168);r(170);r(171);r(172);r(176);r(177);r(178);r(179);r(180);r(182);r(183);r(184);r(185);r(188);r(190);r(191);r(192);r(194);r(196);r(198);r(200);r(201);r(202);r(206);r(207);r(208);r(210);r(220);r(224);r(225);r(227);r(228);r(232);r(233);r(235);r(236);r(237);r(238);r(239);r(240);r(241);r(242);r(243);r(244);r(245);r(246);r(247);r(248);r(249);r(250);r(251);r(252);r(253);r(255);r(256);r(257);r(258);r(259);r(261);r(262);r(263);r(265);r(266);r(267);r(268);r(269);r(270);r(271);r(272);r(274);r(275);r(277);r(278);r(279);r(280);r(283);r(284);r(286);r(287);r(288);r(289);r(291);r(292);r(293);r(294);r(295);r(296);r(297);r(298);r(299);r(300);r(302);r(303);r(304);r(305);r(306);r(307);r(308);r(309);r(310);r(311);r(312);r(314);r(315);r(316);r(317);r(318);r(319);r(320);r(321);r(322);r(323);r(324);r(325);r(326);e.exports=r(9)},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=r(4);var a=r(5);var s=r(6);var o=r(8);var u=r(18);var l=r(22).KEY;var c=r(7);var f=r(23);var h=r(25);var d=r(19);var v=r(26);var p=r(27);var m=r(28);var g=r(29);var y=r(44);var b=r(12);var _=r(13);var S=r(32);var A=r(16);var w=r(17);var x=r(45);var k=r(48);var P=r(50);var C=r(11);var R=r(30);var E=P.f;var T=C.f;var O=k.f;var I=i.Symbol;var F=i.JSON;var L=F&&F.stringify;var M="prototype";var N=v("_hidden");var j=v("toPrimitive");var D={}.propertyIsEnumerable;var q=f("symbol-registry");var U=f("symbols");var W=f("op-symbols");var B=Object[M];var G=typeof I=="function";var z=i.QObject;var H=!z||!z[M]||!z[M].findChild;var X=s&&c(function(){return x(T({},"a",{get:function e(){return T(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=E(B,t);if(n)delete B[t];T(e,t,r);if(n&&e!==B)T(B,t,n)}:T;var V=function e(t){var r=U[t]=x(I[M]);r._k=t;return r};var Y=G&&n(I.iterator)=="symbol"?function(e){return(typeof e==="undefined"?"undefined":n(e))=="symbol"}:function(e){return e instanceof I};var Q=function e(t,r,n){if(t===B)Q(W,r,n);b(t);r=A(r,true);b(n);if(a(U,r)){if(!n.enumerable){if(!a(t,N))T(t,N,w(1,{}));t[N][r]=true}else{if(a(t,N)&&t[N][r])t[N][r]=false;n=x(n,{enumerable:w(0,false)})}return X(t,r,n)}return T(t,r,n)};var K=function e(t,r){b(t);var n=g(r=S(r));var i=0;var a=n.length;var s;while(a>i){Q(t,s=n[i++],r[s])}return t};var J=function e(t,r){return r===undefined?x(t):K(x(t),r)};var Z=function e(t){var r=D.call(this,t=A(t,true));if(this===B&&a(U,t)&&!a(W,t))return false;return r||!a(this,t)||!a(U,t)||a(this,N)&&this[N][t]?r:true};var $=function e(t,r){t=S(t);r=A(r,true);if(t===B&&a(U,r)&&!a(W,r))return;var n=E(t,r);if(n&&a(U,r)&&!(a(t,N)&&t[N][r]))n.enumerable=true;return n};var ee=function e(t){var r=O(S(t));var n=[];var i=0;var s;while(r.length>i){if(!a(U,s=r[i++])&&s!=N&&s!=l)n.push(s)}return n};var te=function e(t){var r=t===B;var n=O(r?W:S(t));var i=[];var s=0;var o;while(n.length>s){if(a(U,o=n[s++])&&(r?a(B,o):true))i.push(U[o])}return i};if(!G){I=function e(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:undefined);var r=function e(r){if(this===B)e.call(W,r);if(a(this,N)&&a(this[N],t))this[N][t]=false;X(this,t,w(1,r))};if(s&&H)X(B,t,{configurable:true,set:r});return V(t)};u(I[M],"toString",function e(){return this._k});P.f=$;C.f=Q;r(49).f=k.f=ee;r(43).f=Z;r(42).f=te;if(s&&!r(24)){u(B,"propertyIsEnumerable",Z,true)}p.f=function(e){return V(v(e))}}o(o.G+o.W+o.F*!G,{Symbol:I});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;){v(re[ne++])}for(var ie=R(v.store),ae=0;ie.length>ae;){m(ie[ae++])}o(o.S+o.F*!G,"Symbol",{for:function e(t){return a(q,t+="")?q[t]:q[t]=I(t)},keyFor:function e(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var r in q){if(q[r]===t)return r}},useSetter:function e(){H=true},useSimple:function e(){H=false}});o(o.S+o.F*!G,"Object",{create:J,defineProperty:Q,defineProperties:K,getOwnPropertyDescriptor:$,getOwnPropertyNames:ee,getOwnPropertySymbols:te});F&&o(o.S+o.F*(!G||c(function(){var e=I();return L([e])!="[null]"||L({a:e})!="{}"||L(Object(e))!="{}"})),"JSON",{stringify:function e(t){var r=[t];var n=1;var i,a;while(arguments.length>n){r.push(arguments[n++])}a=i=r[1];if(!_(i)&&t===undefined||Y(t))return;if(!y(i))i=function e(t,r){if(typeof a=="function")r=a.call(this,t,r);if(!Y(r))return r};r[1]=i;return L.apply(F,r)}});I[M][j]||r(10)(I[M],j,I[M].valueOf);h(I,"Symbol");h(Math,"Math",true);h(i.JSON,"JSON",true)},function(e,t,r){"use strict";var n=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=n},function(e,t,r){"use strict";var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,r){"use strict";e.exports=!r(7)(function(){return Object.defineProperty({},"a",{get:function e(){return 7}}).a!=7})},function(e,t,r){"use strict";e.exports=function(e){try{return!!e()}catch(e){return true}}},function(e,t,r){"use strict";var n=r(4);var i=r(9);var a=r(10);var s=r(18);var o=r(20);var u="prototype";var l=function e(t,r,l){var c=t&e.F;var f=t&e.G;var h=t&e.S;var d=t&e.P;var v=t&e.B;var p=f?n:h?n[r]||(n[r]={}):(n[r]||{})[u];var m=f?i:i[r]||(i[r]={});var g=m[u]||(m[u]={});var y,b,_,S;if(f)l=r;for(y in l){b=!c&&p&&p[y]!==undefined;_=(b?p:l)[y];S=v&&b?o(_,n):d&&typeof _=="function"?o(Function.call,_):_;if(p)s(p,y,_,t&e.U);if(m[y]!=_)a(m,y,S);if(d&&g[y]!=_)g[y]=_}};n.core=i;l.F=1;l.G=2;l.S=4;l.P=8;l.B=16;l.W=32;l.U=64;l.R=128;e.exports=l},function(e,t,r){"use strict";var n=e.exports={version:"2.6.2"};if(typeof __e=="number")__e=n},function(e,t,r){"use strict";var n=r(11);var i=r(17);e.exports=r(6)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){e[t]=r;return e}},function(e,t,r){"use strict";var n=r(12);var i=r(14);var a=r(16);var s=Object.defineProperty;t.f=r(6)?Object.defineProperty:function e(t,r,o){n(t);r=a(r,true);n(o);if(i)try{return s(t,r,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");if("value"in o)t[r]=o.value;return t}},function(e,t,r){"use strict";var n=r(13);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return(typeof e==="undefined"?"undefined":n(e))==="object"?e!==null:typeof e==="function"}},function(e,t,r){"use strict";e.exports=!r(6)&&!r(7)(function(){return Object.defineProperty(r(15)("div"),"a",{get:function e(){return 7}}).a!=7})},function(e,t,r){"use strict";var n=r(13);var i=r(4).document;var a=n(i)&&n(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,r){"use strict";var n=r(13);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!n(i=r.call(e)))return i;if(typeof(r=e.valueOf)=="function"&&!n(i=r.call(e)))return i;if(!t&&typeof(r=e.toString)=="function"&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){"use strict";e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},function(e,t,r){"use strict";var n=r(4);var i=r(10);var a=r(5);var s=r(19)("src");var o="toString";var u=Function[o];var l=(""+u).split(o);r(9).inspectSource=function(e){return u.call(e)};(e.exports=function(e,t,r,o){var u=typeof r=="function";if(u)a(r,"name")||i(r,"name",t);if(e[t]===r)return;if(u)a(r,s)||i(r,s,e[t]?""+e[t]:l.join(String(t)));if(e===n){e[t]=r}else if(!o){delete e[t];i(e,t,r)}else if(e[t]){e[t]=r}else{i(e,t,r)}})(Function.prototype,o,function e(){return typeof this=="function"&&this[s]||u.call(this)})},function(e,t,r){"use strict";var n=0;var i=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+i).toString(36))}},function(e,t,r){"use strict";var n=r(21);e.exports=function(e,t,r){n(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";e.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=r(19)("meta");var a=r(13);var s=r(5);var o=r(11).f;var u=0;var l=Object.isExtensible||function(){return true};var c=!r(7)(function(){return l(Object.preventExtensions({}))});var f=function e(t){o(t,i,{value:{i:"O"+ ++u,w:{}}})};var h=function e(t,r){if(!a(t))return(typeof t==="undefined"?"undefined":n(t))=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!s(t,i)){if(!l(t))return"F";if(!r)return"E";f(t)}return t[i].i};var d=function e(t,r){if(!s(t,i)){if(!l(t))return true;if(!r)return false;f(t)}return t[i].w};var v=function e(t){if(c&&p.NEED&&l(t)&&!s(t,i))f(t);return t};var p=e.exports={KEY:i,NEED:false,fastKey:h,getWeak:d,onFreeze:v}},function(e,t,r){"use strict";var n=r(9);var i=r(4);var a="__core-js_shared__";var s=i[a]||(i[a]={});(e.exports=function(e,t){return s[e]||(s[e]=t!==undefined?t:{})})("versions",[]).push({version:n.version,mode:r(24)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){"use strict";e.exports=false},function(e,t,r){"use strict";var n=r(11).f;var i=r(5);var a=r(26)("toStringTag");e.exports=function(e,t,r){if(e&&!i(e=r?e:e.prototype,a))n(e,a,{configurable:true,value:t})}},function(e,t,r){"use strict";var n=r(23)("wks");var i=r(19);var a=r(4).Symbol;var s=typeof a=="function";var o=e.exports=function(e){return n[e]||(n[e]=s&&a[e]||(s?a:i)("Symbol."+e))};o.store=n},function(e,t,r){"use strict";t.f=r(26)},function(e,t,r){"use strict";var n=r(4);var i=r(9);var a=r(24);var s=r(27);var o=r(11).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:n.Symbol||{});if(e.charAt(0)!="_"&&!(e in t))o(t,e,{value:s.f(e)})}},function(e,t,r){"use strict";var n=r(30);var i=r(42);var a=r(43);e.exports=function(e){var t=n(e);var r=i.f;if(r){var s=r(e);var o=a.f;var u=0;var l;while(s.length>u){if(o.call(e,l=s[u++]))t.push(l)}}return t}},function(e,t,r){"use strict";var n=r(31);var i=r(41);e.exports=Object.keys||function e(t){return n(t,i)}},function(e,t,r){"use strict";var n=r(5);var i=r(32);var a=r(36)(false);var s=r(40)("IE_PROTO");e.exports=function(e,t){var r=i(e);var o=0;var u=[];var l;for(l in r){if(l!=s)n(r,l)&&u.push(l)}while(t.length>o){if(n(r,l=t[o++])){~a(u,l)||u.push(l)}}return u}},function(e,t,r){"use strict";var n=r(33);var i=r(35);e.exports=function(e){return n(i(e))}},function(e,t,r){"use strict";var n=r(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return n(e)=="String"?e.split(""):Object(e)}},function(e,t,r){"use strict";var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,r){"use strict";e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on  "+e);return e}},function(e,t,r){"use strict";var n=r(32);var i=r(37);var a=r(39);e.exports=function(e){return function(t,r,s){var o=n(t);var u=i(o.length);var l=a(s,u);var c;if(e&&r!=r)while(u>l){c=o[l++];if(c!=c)return true}else for(;u>l;l++){if(e||l in o){if(o[l]===r)return e||l||0}}return!e&&-1}}},function(e,t,r){"use strict";var n=r(38);var i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){"use strict";var n=Math.ceil;var i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,r){"use strict";var n=r(38);var i=Math.max;var a=Math.min;e.exports=function(e,t){e=n(e);return e<0?i(e+t,0):a(e,t)}},function(e,t,r){"use strict";var n=r(23)("keys");var i=r(19);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(34);e.exports=Array.isArray||function e(t){return n(t)=="Array"}},function(e,t,r){"use strict";var n=r(12);var i=r(46);var a=r(41);var s=r(40)("IE_PROTO");var o=function e(){};var u="prototype";var l=function e(){var t=r(15)("iframe");var n=a.length;var i="<";var s=">";var o;t.style.display="none";r(47).appendChild(t);t.src="javascript:";o=t.contentWindow.document;o.open();o.write(i+"script"+s+"document.F=Object"+i+"/script"+s);o.close();l=o.F;while(n--){delete l[u][a[n]]}return l()};e.exports=Object.create||function e(t,r){var a;if(t!==null){o[u]=n(t);a=new o;o[u]=null;a[s]=t}else a=l();return r===undefined?a:i(a,r)}},function(e,t,r){"use strict";var n=r(11);var i=r(12);var a=r(30);e.exports=r(6)?Object.defineProperties:function e(t,r){i(t);var s=a(r);var o=s.length;var u=0;var l;while(o>u){n.f(t,l=s[u++],r[l])}return t}},function(e,t,r){"use strict";var n=r(4).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=r(32);var a=r(49).f;var s={}.toString;var o=(typeof window==="undefined"?"undefined":n(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var u=function e(t){try{return a(t)}catch(e){return o.slice()}};e.exports.f=function e(t){return o&&s.call(t)=="[object Window]"?u(t):a(i(t))}},function(e,t,r){"use strict";var n=r(31);var i=r(41).concat("length","prototype");t.f=Object.getOwnPropertyNames||function e(t){return n(t,i)}},function(e,t,r){"use strict";var n=r(43);var i=r(17);var a=r(32);var s=r(16);var o=r(5);var u=r(14);var l=Object.getOwnPropertyDescriptor;t.f=r(6)?l:function e(t,r){t=a(t);r=s(r,true);if(u)try{return l(t,r)}catch(e){}if(o(t,r))return i(!n.f.call(t,r),t[r])}},function(e,t,r){"use strict";var n=r(8);n(n.S,"Object",{create:r(45)})},function(e,t,r){"use strict";var n=r(8);n(n.S+n.F*!r(6),"Object",{defineProperty:r(11).f})},function(e,t,r){"use strict";var n=r(8);n(n.S+n.F*!r(6),"Object",{defineProperties:r(46)})},function(e,t,r){"use strict";var n=r(32);var i=r(50).f;r(55)("getOwnPropertyDescriptor",function(){return function e(t,r){return i(n(t),r)}})},function(e,t,r){"use strict";var n=r(8);var i=r(9);var a=r(7);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e];var s={};s[e]=t(r);n(n.S+n.F*a(function(){r(1)}),"Object",s)}},function(e,t,r){"use strict";var n=r(57);var i=r(58);r(55)("getPrototypeOf",function(){return function e(t){return i(n(t))}})},function(e,t,r){"use strict";var n=r(35);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";var n=r(5);var i=r(57);var a=r(40)("IE_PROTO");var s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){e=i(e);if(n(e,a))return e[a];if(typeof e.constructor=="function"&&e instanceof e.constructor){return e.constructor.prototype}return e instanceof Object?s:null}},function(e,t,r){"use strict";var n=r(57);var i=r(30);r(55)("keys",function(){return function e(t){return i(n(t))}})},function(e,t,r){"use strict";r(55)("getOwnPropertyNames",function(){return r(48).f})},function(e,t,r){"use strict";var n=r(13);var i=r(22).onFreeze;r(55)("freeze",function(e){return function t(r){return e&&n(r)?e(i(r)):r}})},function(e,t,r){"use strict";var n=r(13);var i=r(22).onFreeze;r(55)("seal",function(e){return function t(r){return e&&n(r)?e(i(r)):r}})},function(e,t,r){"use strict";var n=r(13);var i=r(22).onFreeze;r(55)("preventExtensions",function(e){return function t(r){return e&&n(r)?e(i(r)):r}})},function(e,t,r){"use strict";var n=r(13);r(55)("isFrozen",function(e){return function t(r){return n(r)?e?e(r):false:true}})},function(e,t,r){"use strict";var n=r(13);r(55)("isSealed",function(e){return function t(r){return n(r)?e?e(r):false:true}})},function(e,t,r){"use strict";var n=r(13);r(55)("isExtensible",function(e){return function t(r){return n(r)?e?e(r):true:false}})},function(e,t,r){"use strict";var n=r(8);n(n.S+n.F,"Object",{assign:r(68)})},function(e,t,r){"use strict";var n=r(30);var i=r(42);var a=r(43);var s=r(57);var o=r(33);var u=Object.assign;e.exports=!u||r(7)(function(){var e={};var t={};var r=Symbol();var n="abcdefghijklmnopqrst";e[r]=7;n.split("").forEach(function(e){t[e]=e});return u({},e)[r]!=7||Object.keys(u({},t)).join("")!=n})?function e(t,r){var u=s(t);var l=arguments.length;var c=1;var f=i.f;var h=a.f;while(l>c){var d=o(arguments[c++]);var v=f?n(d).concat(f(d)):n(d);var p=v.length;var m=0;var g;while(p>m){if(h.call(d,g=v[m++]))u[g]=d[g]}}return u}:u},function(e,t,r){"use strict";var n=r(8);n(n.S,"Object",{is:r(70)})},function(e,t,r){"use strict";e.exports=Object.is||function e(t,r){return t===r?t!==0||1/t===1/r:t!=t&&r!=r}},function(e,t,r){"use strict";var n=r(8);n(n.S,"Object",{setPrototypeOf:r(72).set})},function(e,t,r){"use strict";var n=r(13);var i=r(12);var a=function e(t,r){i(t);if(!n(r)&&r!==null)throw TypeError(r+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(20)(Function.call,r(50).f(Object.prototype,"__proto__").set,2);n(e,[]);t=!(e instanceof Array)}catch(e){t=true}return function e(r,i){a(r,i);if(t)r.__proto__=i;else n(r,i);return r}}({},false):undefined),check:a}},function(e,t,r){"use strict";var n=r(74);var i={};i[r(26)("toStringTag")]="z";if(i+""!="[object z]"){r(18)(Object.prototype,"toString",function e(){return"[object "+n(this)+"]"},true)}},function(e,t,r){"use strict";var n=r(34);var i=r(26)("toStringTag");var a=n(function(){return arguments}())=="Arguments";var s=function e(t,r){try{return t[r]}catch(e){}};e.exports=function(e){var t,r,o;return e===undefined?"Undefined":e===null?"Null":typeof(r=s(t=Object(e),i))=="string"?r:a?n(t):(o=n(t))=="Object"&&typeof t.callee=="function"?"Arguments":o}},function(e,t,r){"use strict";var n=r(8);n(n.P,"Function",{bind:r(76)})},function(e,t,r){"use strict";var n=r(21);var i=r(13);var a=r(77);var s=[].slice;var o={};var u=function e(t,r,n){if(!(r in o)){for(var i=[],a=0;a<r;a++){i[a]="a["+a+"]"}o[r]=Function("F,a","return new F("+i.join(",")+")")}return o[r](t,n)};e.exports=Function.bind||function e(t){var r=n(this);var o=s.call(arguments,1);var l=function e(){var n=o.concat(s.call(arguments));return this instanceof e?u(r,n.length,n):a(r,n,t)};if(i(r.prototype))l.prototype=r.prototype;return l}},function(e,t,r){"use strict";e.exports=function(e,t,r){var n=r===undefined;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){"use strict";var n=r(11).f;var i=Function.prototype;var a=/^\s*function ([^ (]*)/;var s="name";s in i||r(6)&&n(i,s,{configurable:true,get:function e(){try{return(""+this).match(a)[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(13);var i=r(58);var a=r(26)("hasInstance");var s=Function.prototype;if(!(a in s))r(11).f(s,a,{value:function e(t){if(typeof this!="function"||!n(t))return false;if(!n(this.prototype))return t instanceof this;while(t=i(t)){if(this.prototype===t)return true}return false}})},function(e,t,r){"use strict";var n=r(8);var i=r(81);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(e,t,r){"use strict";var n=r(4).parseInt;var i=r(82).trim;var a=r(83);var s=/^[-+]?0[xX]/;e.exports=n(a+"08")!==8||n(a+"0x16")!==22?function e(t,r){var a=i(String(t),3);return n(a,r>>>0||(s.test(a)?16:10))}:n},function(e,t,r){"use strict";var n=r(8);var i=r(35);var a=r(7);var s=r(83);var o="["+s+"]";var u="​";var l=RegExp("^"+o+o+"*");var c=RegExp(o+o+"*$");var f=function e(t,r,i){var o={};var l=a(function(){return!!s[t]()||u[t]()!=u});var c=o[t]=l?r(h):s[t];if(i)o[i]=c;n(n.P+n.F*l,"String",o)};var h=f.trim=function(e,t){e=String(i(e));if(t&1)e=e.replace(l,"");if(t&2)e=e.replace(c,"");return e};e.exports=f},function(e,t,r){"use strict";e.exports="\t\n\v\f\r   ᠎    "+"         　\u2028\u2029\ufeff"},function(e,t,r){"use strict";var n=r(8);var i=r(85);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(e,t,r){"use strict";var n=r(4).parseFloat;var i=r(82).trim;e.exports=1/n(r(83)+"-0")!==-Infinity?function e(t){var r=i(String(t),3);var a=n(r);return a===0&&r.charAt(0)=="-"?-0:a}:n},function(e,t,r){"use strict";var n=r(4);var i=r(5);var a=r(34);var s=r(87);var o=r(16);var u=r(7);var l=r(49).f;var c=r(50).f;var f=r(11).f;var h=r(82).trim;var d="Number";var v=n[d];var p=v;var m=v.prototype;var g=a(r(45)(m))==d;var y="trim"in String.prototype;var b=function e(t){var r=o(t,false);if(typeof r=="string"&&r.length>2){r=y?r.trim():h(r,3);var n=r.charCodeAt(0);var i,a,s;if(n===43||n===45){i=r.charCodeAt(2);if(i===88||i===120)return NaN}else if(n===48){switch(r.charCodeAt(1)){case 66:case 98:a=2;s=49;break;case 79:case 111:a=8;s=55;break;default:return+r}for(var u=r.slice(2),l=0,c=u.length,f;l<c;l++){f=u.charCodeAt(l);if(f<48||f>s)return NaN}return parseInt(u,a)}}return+r};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function e(t){var r=arguments.length<1?0:t;var n=this;return n instanceof v&&(g?u(function(){m.valueOf.call(n)}):a(n)!=d)?s(new p(b(r)),n,v):b(r)};for(var _=r(6)?l(p):("MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,"+"EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,"+"MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger").split(","),S=0,A;_.length>S;S++){if(i(p,A=_[S])&&!i(v,A)){f(v,A,c(p,A))}}v.prototype=m;m.constructor=v;r(18)(n,d,v)}},function(e,t,r){"use strict";var n=r(13);var i=r(72).set;e.exports=function(e,t,r){var a=t.constructor;var s;if(a!==r&&typeof a=="function"&&(s=a.prototype)!==r.prototype&&n(s)&&i){i(e,s)}return e}},function(e,t,r){"use strict";var n=r(8);var i=r(38);var a=r(89);var s=r(90);var o=1..toFixed;var u=Math.floor;var l=[0,0,0,0,0,0];var c="Number.toFixed: incorrect invocation!";var f="0";var h=function e(t,r){var n=-1;var i=r;while(++n<6){i+=t*l[n];l[n]=i%1e7;i=u(i/1e7)}};var d=function e(t){var r=6;var n=0;while(--r>=0){n+=l[r];l[r]=u(n/t);n=n%t*1e7}};var v=function e(){var t=6;var r="";while(--t>=0){if(r!==""||t===0||l[t]!==0){var n=String(l[t]);r=r===""?n:r+s.call(f,7-n.length)+n}}return r};var p=function e(t,r,n){return r===0?n:r%2===1?e(t,r-1,n*t):e(t*t,r/2,n)};var m=function e(t){var r=0;var n=t;while(n>=4096){r+=12;n/=4096}while(n>=2){r+=1;n/=2}return r};n(n.P+n.F*(!!o&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(0xde0b6b3a7640080).toFixed(0)!=="1000000000000000128")||!r(7)(function(){o.call({})})),"Number",{toFixed:function e(t){var r=a(this,c);var n=i(t);var o="";var u=f;var l,g,y,b;if(n<0||n>20)throw RangeError(c);if(r!=r)return"NaN";if(r<=-1e21||r>=1e21)return String(r);if(r<0){o="-";r=-r}if(r>1e-21){l=m(r*p(2,69,1))-69;g=l<0?r*p(2,-l,1):r/p(2,l,1);g*=4503599627370496;l=52-l;if(l>0){h(0,g);y=n;while(y>=7){h(1e7,0);y-=7}h(p(10,y,1),0);y=l-1;while(y>=23){d(1<<23);y-=23}d(1<<y);h(1,1);d(2);u=v()}else{h(0,g);h(1<<-l,0);u=v()+s.call(f,n)}}if(n>0){b=u.length;u=o+(b<=n?"0."+s.call(f,n-b)+u:u.slice(0,b-n)+"."+u.slice(b-n))}else{u=o+u}return u}})},function(e,t,r){"use strict";var n=r(34);e.exports=function(e,t){if(typeof e!="number"&&n(e)!="Number")throw TypeError(t);return+e}},function(e,t,r){"use strict";var n=r(38);var i=r(35);e.exports=function e(t){var r=String(i(this));var a="";var s=n(t);if(s<0||s==Infinity)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(r+=r)){if(s&1)a+=r}return a}},function(e,t,r){"use strict";var n=r(8);var i=r(7);var a=r(89);var s=1..toPrecision;n(n.P+n.F*(i(function(){return s.call(1,undefined)!=="1"})||!i(function(){s.call({})})),"Number",{toPrecision:function e(t){var r=a(this,"Number#toPrecision: incorrect invocation!");return t===undefined?s.call(r):s.call(r,t)}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,r){"use strict";var n=r(8);var i=r(4).isFinite;n(n.S,"Number",{isFinite:function e(t){return typeof t=="number"&&i(t)}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Number",{isInteger:r(95)})},function(e,t,r){"use strict";var n=r(13);var i=Math.floor;e.exports=function e(t){return!n(t)&&isFinite(t)&&i(t)===t}},function(e,t,r){"use strict";var n=r(8);n(n.S,"Number",{isNaN:function e(t){return t!=t}})},function(e,t,r){"use strict";var n=r(8);var i=r(95);var a=Math.abs;n(n.S,"Number",{isSafeInteger:function e(t){return i(t)&&a(t)<=9007199254740991}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,r){"use strict";var n=r(8);var i=r(85);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,r){"use strict";var n=r(8);var i=r(81);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,r){"use strict";var n=r(8);var i=r(103);var a=Math.sqrt;var s=Math.acosh;n(n.S+n.F*!(s&&Math.floor(s(Number.MAX_VALUE))==710&&s(Infinity)==Infinity),"Math",{acosh:function e(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+a(t-1)*a(t+1))}})},function(e,t,r){"use strict";e.exports=Math.log1p||function e(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(e,t,r){"use strict";var n=r(8);var i=Math.asinh;function a(e){return!isFinite(e=+e)||e==0?e:e<0?-a(-e):Math.log(e+Math.sqrt(e*e+1))}n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:a})},function(e,t,r){"use strict";var n=r(8);var i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function e(t){return(t=+t)==0?t:Math.log((1+t)/(1-t))/2}})},function(e,t,r){"use strict";var n=r(8);var i=r(107);n(n.S,"Math",{cbrt:function e(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(e,t,r){"use strict";e.exports=Math.sign||function e(t){return(t=+t)==0||t!=t?t:t<0?-1:1}},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{clz32:function e(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(e,t,r){"use strict";var n=r(8);var i=Math.exp;n(n.S,"Math",{cosh:function e(t){return(i(t=+t)+i(-t))/2}})},function(e,t,r){"use strict";var n=r(8);var i=r(111);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,r){"use strict";var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function e(t){return(t=+t)==0?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{fround:r(113)})},function(e,t,r){"use strict";var n=r(107);var i=Math.pow;var a=i(2,-52);var s=i(2,-23);var o=i(2,127)*(2-s);var u=i(2,-126);var l=function e(t){return t+1/a-1/a};e.exports=Math.fround||function e(t){var r=Math.abs(t);var i=n(t);var c,f;if(r<u)return i*l(r/u/s)*u*s;c=(1+s/a)*r;f=c-(c-r);if(f>o||f!=f)return i*Infinity;return i*f}},function(e,t,r){"use strict";var n=r(8);var i=Math.abs;n(n.S,"Math",{hypot:function e(t,r){var n=0;var a=0;var s=arguments.length;var o=0;var u,l;while(a<s){u=i(arguments[a++]);if(o<u){l=o/u;n=n*l*l+1;o=u}else if(u>0){l=u/o;n+=l*l}else n+=u}return o===Infinity?Infinity:o*Math.sqrt(n)}})},function(e,t,r){"use strict";var n=r(8);var i=Math.imul;n(n.S+n.F*r(7)(function(){return i(4294967295,5)!=-5||i.length!=2}),"Math",{imul:function e(t,r){var n=65535;var i=+t;var a=+r;var s=n&i;var o=n&a;return 0|s*o+((n&i>>>16)*o+s*(n&a>>>16)<<16>>>0)}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{log10:function e(t){return Math.log(t)*Math.LOG10E}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{log1p:r(103)})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{log2:function e(t){return Math.log(t)/Math.LN2}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{sign:r(107)})},function(e,t,r){"use strict";var n=r(8);var i=r(111);var a=Math.exp;n(n.S+n.F*r(7)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function e(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(e,t,r){"use strict";var n=r(8);var i=r(111);var a=Math.exp;n(n.S,"Math",{tanh:function e(t){var r=i(t=+t);var n=i(-t);return r==Infinity?1:n==Infinity?-1:(r-n)/(a(t)+a(-t))}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{trunc:function e(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(e,t,r){"use strict";var n=r(8);var i=r(39);var a=String.fromCharCode;var s=String.fromCodePoint;n(n.S+n.F*(!!s&&s.length!=1),"String",{fromCodePoint:function e(t){var r=[];var n=arguments.length;var s=0;var o;while(n>s){o=+arguments[s++];if(i(o,1114111)!==o)throw RangeError(o+" is not a valid code point");r.push(o<65536?a(o):a(((o-=65536)>>10)+55296,o%1024+56320))}return r.join("")}})},function(e,t,r){"use strict";var n=r(8);var i=r(32);var a=r(37);n(n.S,"String",{raw:function e(t){var r=i(t.raw);var n=a(r.length);var s=arguments.length;var o=[];var u=0;while(n>u){o.push(String(r[u++]));if(u<s)o.push(String(arguments[u]))}return o.join("")}})},function(e,t,r){"use strict";r(82)("trim",function(e){return function t(){return e(this,3)}})},function(e,t,r){"use strict";var n=r(127)(true);r(128)(String,"String",function(e){this._t=String(e);this._i=0},function(){var e=this._t;var t=this._i;var r;if(t>=e.length)return{value:undefined,done:true};r=n(e,t);this._i+=r.length;return{value:r,done:false}})},function(e,t,r){"use strict";var n=r(38);var i=r(35);e.exports=function(e){return function(t,r){var a=String(i(t));var s=n(r);var o=a.length;var u,l;if(s<0||s>=o)return e?"":undefined;u=a.charCodeAt(s);return u<55296||u>56319||s+1===o||(l=a.charCodeAt(s+1))<56320||l>57343?e?a.charAt(s):u:e?a.slice(s,s+2):(u-55296<<10)+(l-56320)+65536}}},function(e,t,r){"use strict";var n=r(24);var i=r(8);var a=r(18);var s=r(10);var o=r(129);var u=r(130);var l=r(25);var c=r(58);var f=r(26)("iterator");var h=!([].keys&&"next"in[].keys());var d="@@iterator";var v="keys";var p="values";var m=function e(){return this};e.exports=function(e,t,r,g,y,b,_){u(r,t,g);var S=function e(t){if(!h&&t in k)return k[t];switch(t){case v:return function e(){return new r(this,t)};case p:return function e(){return new r(this,t)}}return function e(){return new r(this,t)}};var A=t+" Iterator";var w=y==p;var x=false;var k=e.prototype;var P=k[f]||k[d]||y&&k[y];var C=P||S(y);var R=y?!w?C:S("entries"):undefined;var E=t=="Array"?k.entries||P:P;var T,O,I;if(E){I=c(E.call(new e));if(I!==Object.prototype&&I.next){l(I,A,true);if(!n&&typeof I[f]!="function")s(I,f,m)}}if(w&&P&&P.name!==p){x=true;C=function e(){return P.call(this)}}if((!n||_)&&(h||x||!k[f])){s(k,f,C)}o[t]=C;o[A]=m;if(y){T={values:w?C:S(p),keys:b?C:S(v),entries:R};if(_)for(O in T){if(!(O in k))a(k,O,T[O])}else i(i.P+i.F*(h||x),t,T)}return T}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var n=r(45);var i=r(17);var a=r(25);var s={};r(10)(s,r(26)("iterator"),function(){return this});e.exports=function(e,t,r){e.prototype=n(s,{next:i(1,r)});a(e,t+" Iterator")}},function(e,t,r){"use strict";var n=r(8);var i=r(127)(false);n(n.P,"String",{codePointAt:function e(t){return i(this,t)}})},function(e,t,r){"use strict";var n=r(8);var i=r(37);var a=r(133);var s="endsWith";var o=""[s];n(n.P+n.F*r(135)(s),"String",{endsWith:function e(t){var r=a(this,t,s);var n=arguments.length>1?arguments[1]:undefined;var u=i(r.length);var l=n===undefined?u:Math.min(i(n),u);var c=String(t);return o?o.call(r,c,l):r.slice(l-c.length,l)===c}})},function(e,t,r){"use strict";var n=r(134);var i=r(35);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){"use strict";var n=r(13);var i=r(34);var a=r(26)("match");e.exports=function(e){var t;return n(e)&&((t=e[a])!==undefined?!!t:i(e)=="RegExp")}},function(e,t,r){"use strict";var n=r(26)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{t[n]=false;return!"/./"[e](t)}catch(e){}}return true}},function(e,t,r){"use strict";var n=r(8);var i=r(133);var a="includes";n(n.P+n.F*r(135)(a),"String",{includes:function e(t){return!!~i(this,t,a).indexOf(t,arguments.length>1?arguments[1]:undefined)}})},function(e,t,r){"use strict";var n=r(8);n(n.P,"String",{repeat:r(90)})},function(e,t,r){"use strict";var n=r(8);var i=r(37);var a=r(133);var s="startsWith";var o=""[s];n(n.P+n.F*r(135)(s),"String",{startsWith:function e(t){var r=a(this,t,s);var n=i(Math.min(arguments.length>1?arguments[1]:undefined,r.length));var u=String(t);return o?o.call(r,u,n):r.slice(n,n+u.length)===u}})},function(e,t,r){"use strict";r(140)("anchor",function(e){return function t(r){return e(this,"a","name",r)}})},function(e,t,r){"use strict";var n=r(8);var i=r(7);var a=r(35);var s=/"/g;var o=function e(t,r,n,i){var o=String(a(t));var u="<"+r;if(n!=="")u+=" "+n+'="'+String(i).replace(s,"&quot;")+'"';return u+">"+o+"</"+r+">"};e.exports=function(e,t){var r={};r[e]=t(o);n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},function(e,t,r){"use strict";r(140)("big",function(e){return function t(){return e(this,"big","","")}})},function(e,t,r){"use strict";r(140)("blink",function(e){return function t(){return e(this,"blink","","")}})},function(e,t,r){"use strict";r(140)("bold",function(e){return function t(){return e(this,"b","","")}})},function(e,t,r){"use strict";r(140)("fixed",function(e){return function t(){return e(this,"tt","","")}})},function(e,t,r){"use strict";r(140)("fontcolor",function(e){return function t(r){return e(this,"font","color",r)}})},function(e,t,r){"use strict";r(140)("fontsize",function(e){return function t(r){return e(this,"font","size",r)}})},function(e,t,r){"use strict";r(140)("italics",function(e){return function t(){return e(this,"i","","")}})},function(e,t,r){"use strict";r(140)("link",function(e){return function t(r){return e(this,"a","href",r)}})},function(e,t,r){"use strict";r(140)("small",function(e){return function t(){return e(this,"small","","")}})},function(e,t,r){"use strict";r(140)("strike",function(e){return function t(){return e(this,"strike","","")}})},function(e,t,r){"use strict";r(140)("sub",function(e){return function t(){return e(this,"sub","","")}})},function(e,t,r){"use strict";r(140)("sup",function(e){return function t(){return e(this,"sup","","")}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Date",{now:function e(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(8);var i=r(57);var a=r(16);n(n.P+n.F*r(7)(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function e(){return 1}})!==1}),"Date",{toJSON:function e(t){var r=i(this);var n=a(r);return typeof n=="number"&&!isFinite(n)?null:r.toISOString()}})},function(e,t,r){"use strict";var n=r(8);var i=r(156);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,r){"use strict";var n=r(7);var i=Date.prototype.getTime;var a=Date.prototype.toISOString;var s=function e(t){return t>9?t:"0"+t};e.exports=n(function(){return a.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!n(function(){a.call(new Date(NaN))})?function e(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this;var r=t.getUTCFullYear();var n=t.getUTCMilliseconds();var a=r<0?"-":r>9999?"+":"";return a+("00000"+Math.abs(r)).slice(a?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:a},function(e,t,r){"use strict";var n=Date.prototype;var i="Invalid Date";var a="toString";var s=n[a];var o=n.getTime;if(new Date(NaN)+""!=i){r(18)(n,a,function e(){var t=o.call(this);return t===t?s.call(this):i})}},function(e,t,r){"use strict";var n=r(26)("toPrimitive");var i=Date.prototype;if(!(n in i))r(10)(i,n,r(159))},function(e,t,r){"use strict";var n=r(12);var i=r(16);var a="number";e.exports=function(e){if(e!=="string"&&e!==a&&e!=="default")throw TypeError("Incorrect hint");return i(n(this),e!=a)}},function(e,t,r){"use strict";var n=r(8);n(n.S,"Array",{isArray:r(44)})},function(e,t,r){"use strict";var n=r(20);var i=r(8);var a=r(57);var s=r(162);var o=r(163);var u=r(37);var l=r(164);var c=r(165);i(i.S+i.F*!r(166)(function(e){Array.from(e)}),"Array",{from:function e(t){var r=a(t);var i=typeof this=="function"?this:Array;var f=arguments.length;var h=f>1?arguments[1]:undefined;var d=h!==undefined;var v=0;var p=c(r);var m,g,y,b;if(d)h=n(h,f>2?arguments[2]:undefined,2);if(p!=undefined&&!(i==Array&&o(p))){for(b=p.call(r),g=new i;!(y=b.next()).done;v++){l(g,v,d?s(b,h,[y.value,v],true):y.value)}}else{m=u(r.length);for(g=new i(m);m>v;v++){l(g,v,d?h(r[v],v):r[v])}}g.length=v;return g}})},function(e,t,r){"use strict";var n=r(12);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var a=e["return"];if(a!==undefined)n(a.call(e));throw t}}},function(e,t,r){"use strict";var n=r(129);var i=r(26)("iterator");var a=Array.prototype;e.exports=function(e){return e!==undefined&&(n.Array===e||a[i]===e)}},function(e,t,r){"use strict";var n=r(11);var i=r(17);e.exports=function(e,t,r){if(t in e)n.f(e,t,i(0,r));else e[t]=r}},function(e,t,r){"use strict";var n=r(74);var i=r(26)("iterator");var a=r(129);e.exports=r(9).getIteratorMethod=function(e){if(e!=undefined)return e[i]||e["@@iterator"]||a[n(e)]}},function(e,t,r){"use strict";var n=r(26)("iterator");var i=false;try{var a=[7][n]();a["return"]=function(){i=true};Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return false;var r=false;try{var a=[7];var s=a[n]();s.next=function(){return{done:r=true}};a[n]=function(){return s};e(a)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(8);var i=r(164);n(n.S+n.F*r(7)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function e(){var t=0;var r=arguments.length;var n=new(typeof this=="function"?this:Array)(r);while(r>t){i(n,t,arguments[t++])}n.length=r;return n}})},function(e,t,r){"use strict";var n=r(8);var i=r(32);var a=[].join;n(n.P+n.F*(r(33)!=Object||!r(169)(a)),"Array",{join:function e(t){return a.call(i(this),t===undefined?",":t)}})},function(e,t,r){"use strict";var n=r(7);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){"use strict";var n=r(8);var i=r(47);var a=r(34);var s=r(39);var o=r(37);var u=[].slice;n(n.P+n.F*r(7)(function(){if(i)u.call(i)}),"Array",{slice:function e(t,r){var n=o(this.length);var i=a(this);r=r===undefined?n:r;if(i=="Array")return u.call(this,t,r);var l=s(t,n);var c=s(r,n);var f=o(c-l);var h=new Array(f);var d=0;for(;d<f;d++){h[d]=i=="String"?this.charAt(l+d):this[l+d]}return h}})},function(e,t,r){"use strict";var n=r(8);var i=r(21);var a=r(57);var s=r(7);var o=[].sort;var u=[1,2,3];n(n.P+n.F*(s(function(){u.sort(undefined)})||!s(function(){u.sort(null)})||!r(169)(o)),"Array",{sort:function e(t){return t===undefined?o.call(a(this)):o.call(a(this),i(t))}})},function(e,t,r){"use strict";var n=r(8);var i=r(173)(0);var a=r(169)([].forEach,true);n(n.P+n.F*!a,"Array",{forEach:function e(t){return i(this,t,arguments[1])}})},function(e,t,r){"use strict";var n=r(20);var i=r(33);var a=r(57);var s=r(37);var o=r(174);e.exports=function(e,t){var r=e==1;var u=e==2;var l=e==3;var c=e==4;var f=e==6;var h=e==5||f;var d=t||o;return function(t,o,v){var p=a(t);var m=i(p);var g=n(o,v,3);var y=s(m.length);var b=0;var _=r?d(t,y):u?d(t,0):undefined;var S,A;for(;y>b;b++){if(h||b in m){S=m[b];A=g(S,b,p);if(e){if(r)_[b]=A;else if(A)switch(e){case 3:return true;case 5:return S;case 6:return b;case 2:_.push(S)}else if(c)return false}}}return f?-1:l||c?c:_}}},function(e,t,r){"use strict";var n=r(175);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){"use strict";var n=r(13);var i=r(44);var a=r(26)("species");e.exports=function(e){var t;if(i(e)){t=e.constructor;if(typeof t=="function"&&(t===Array||i(t.prototype)))t=undefined;if(n(t)){t=t[a];if(t===null)t=undefined}}return t===undefined?Array:t}},function(e,t,r){"use strict";var n=r(8);var i=r(173)(1);n(n.P+n.F*!r(169)([].map,true),"Array",{map:function e(t){return i(this,t,arguments[1])}})},function(e,t,r){"use strict";var n=r(8);var i=r(173)(2);n(n.P+n.F*!r(169)([].filter,true),"Array",{filter:function e(t){return i(this,t,arguments[1])}})},function(e,t,r){"use strict";var n=r(8);var i=r(173)(3);n(n.P+n.F*!r(169)([].some,true),"Array",{some:function e(t){return i(this,t,arguments[1])}})},function(e,t,r){"use strict";var n=r(8);var i=r(173)(4);n(n.P+n.F*!r(169)([].every,true),"Array",{every:function e(t){return i(this,t,arguments[1])}})},function(e,t,r){"use strict";var n=r(8);var i=r(181);n(n.P+n.F*!r(169)([].reduce,true),"Array",{reduce:function e(t){return i(this,t,arguments.length,arguments[1],false)}})},function(e,t,r){"use strict";var n=r(21);var i=r(57);var a=r(33);var s=r(37);e.exports=function(e,t,r,o,u){n(t);var l=i(e);var c=a(l);var f=s(l.length);var h=u?f-1:0;var d=u?-1:1;if(r<2)for(;;){if(h in c){o=c[h];h+=d;break}h+=d;if(u?h<0:f<=h){throw TypeError("Reduce of empty array with no initial value")}}for(;u?h>=0:f>h;h+=d){if(h in c){o=t(o,c[h],h,l)}}return o}},function(e,t,r){"use strict";var n=r(8);var i=r(181);n(n.P+n.F*!r(169)([].reduceRight,true),"Array",{reduceRight:function e(t){return i(this,t,arguments.length,arguments[1],true)}})},function(e,t,r){"use strict";var n=r(8);var i=r(36)(false);var a=[].indexOf;var s=!!a&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(s||!r(169)(a)),"Array",{indexOf:function e(t){return s?a.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(e,t,r){"use strict";var n=r(8);var i=r(32);var a=r(38);var s=r(37);var o=[].lastIndexOf;var u=!!o&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(u||!r(169)(o)),"Array",{lastIndexOf:function e(t){if(u)return o.apply(this,arguments)||0;var r=i(this);var n=s(r.length);var l=n-1;if(arguments.length>1)l=Math.min(l,a(arguments[1]));if(l<0)l=n+l;for(;l>=0;l--){if(l in r)if(r[l]===t)return l||0}return-1}})},function(e,t,r){"use strict";var n=r(8);n(n.P,"Array",{copyWithin:r(186)});r(187)("copyWithin")},function(e,t,r){"use strict";var n=r(57);var i=r(39);var a=r(37);e.exports=[].copyWithin||function e(t,r){var s=n(this);var o=a(s.length);var u=i(t,o);var l=i(r,o);var c=arguments.length>2?arguments[2]:undefined;var f=Math.min((c===undefined?o:i(c,o))-l,o-u);var h=1;if(l<u&&u<l+f){h=-1;l+=f-1;u+=f-1}while(f-- >0){if(l in s)s[u]=s[l];else delete s[u];u+=h;l+=h}return s}},function(e,t,r){"use strict";var n=r(26)("unscopables");var i=Array.prototype;if(i[n]==undefined)r(10)(i,n,{});e.exports=function(e){i[n][e]=true}},function(e,t,r){"use strict";var n=r(8);n(n.P,"Array",{fill:r(189)});r(187)("fill")},function(e,t,r){"use strict";var n=r(57);var i=r(39);var a=r(37);e.exports=function e(t){var r=n(this);var s=a(r.length);var o=arguments.length;var u=i(o>1?arguments[1]:undefined,s);var l=o>2?arguments[2]:undefined;var c=l===undefined?s:i(l,s);while(c>u){r[u++]=t}return r}},function(e,t,r){"use strict";var n=r(8);var i=r(173)(5);var a="find";var s=true;if(a in[])Array(1)[a](function(){s=false});n(n.P+n.F*s,"Array",{find:function e(t){return i(this,t,arguments.length>1?arguments[1]:undefined)}});r(187)(a)},function(e,t,r){"use strict";var n=r(8);var i=r(173)(6);var a="findIndex";var s=true;if(a in[])Array(1)[a](function(){s=false});n(n.P+n.F*s,"Array",{findIndex:function e(t){return i(this,t,arguments.length>1?arguments[1]:undefined)}});r(187)(a)},function(e,t,r){"use strict";r(193)("Array")},function(e,t,r){"use strict";var n=r(4);var i=r(11);var a=r(6);var s=r(26)("species");e.exports=function(e){var t=n[e];if(a&&t&&!t[s])i.f(t,s,{configurable:true,get:function e(){return this}})}},function(e,t,r){"use strict";var n=r(187);var i=r(195);var a=r(129);var s=r(32);e.exports=r(128)(Array,"Array",function(e,t){this._t=s(e);this._i=0;this._k=t},function(){var e=this._t;var t=this._k;var r=this._i++;if(!e||r>=e.length){this._t=undefined;return i(1)}if(t=="keys")return i(0,r);if(t=="values")return i(0,e[r]);return i(0,[r,e[r]])},"values");a.Arguments=a.Array;n("keys");n("values");n("entries")},function(e,t,r){"use strict";e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n=r(4);var i=r(87);var a=r(11).f;var s=r(49).f;var o=r(134);var u=r(197);var l=n.RegExp;var c=l;var f=l.prototype;var h=/a/g;var d=/a/g;var v=new l(h)!==h;if(r(6)&&(!v||r(7)(function(){d[r(26)("match")]=false;return l(h)!=h||l(d)==d||l(h,"i")!="/a/i"}))){l=function e(t,r){var n=this instanceof l;var a=o(t);var s=r===undefined;return!n&&a&&t.constructor===l&&s?t:i(v?new c(a&&!s?t.source:t,r):c((a=t instanceof l)?t.source:t,a&&s?u.call(t):r),n?this:f,l)};var p=function e(t){t in l||a(l,t,{configurable:true,get:function e(){return c[t]},set:function e(r){c[t]=r}})};for(var m=s(c),g=0;m.length>g;){p(m[g++])}f.constructor=l;l.prototype=f;r(18)(n,"RegExp",l)}r(193)("RegExp")},function(e,t,r){"use strict";var n=r(12);e.exports=function(){var e=n(this);var t="";if(e.global)t+="g";if(e.ignoreCase)t+="i";if(e.multiline)t+="m";if(e.unicode)t+="u";if(e.sticky)t+="y";return t}},function(e,t,r){"use strict";var n=r(199);r(8)({target:"RegExp",proto:true,forced:n!==/./.exec},{exec:n})},function(e,t,r){"use strict";var n=r(197);var i=RegExp.prototype.exec;var a=String.prototype.replace;var s=i;var o="lastIndex";var u=function(){var e=/a/,t=/b*/g;i.call(e,"a");i.call(t,"a");return e[o]!==0||t[o]!==0}();var l=/()??/.exec("")[1]!==undefined;var c=u||l;if(c){s=function e(t){var r=this;var s,c,f,h;if(l){c=new RegExp("^"+r.source+"$(?!\\s)",n.call(r))}if(u)s=r[o];f=i.call(r,t);if(u&&f){r[o]=r.global?f.index+f[0].length:s}if(l&&f&&f.length>1){a.call(f[0],c,function(){for(h=1;h<arguments.length-2;h++){if(arguments[h]===undefined)f[h]=undefined}})}return f}}e.exports=s},function(e,t,r){"use strict";r(201);var n=r(12);var i=r(197);var a=r(6);var s="toString";var o=/./[s];var u=function e(t){r(18)(RegExp.prototype,s,t,true)};if(r(7)(function(){return o.call({source:"a",flags:"b"})!="/a/b"})){u(function e(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?i.call(t):undefined)})}else if(o.name!=s){u(function e(){return o.call(this)})}},function(e,t,r){"use strict";if(r(6)&&/./g.flags!="g")r(11).f(RegExp.prototype,"flags",{configurable:true,get:r(197)})},function(e,t,r){"use strict";var n=r(12);var i=r(37);var a=r(203);var s=r(204);r(205)("match",1,function(e,t,r,o){return[function r(n){var i=e(this);var a=n==undefined?undefined:n[t];return a!==undefined?a.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=o(r,e,this);if(t.done)return t.value;var u=n(e);var l=String(this);if(!u.global)return s(u,l);var c=u.unicode;u.lastIndex=0;var f=[];var h=0;var d;while((d=s(u,l))!==null){var v=String(d[0]);f[h]=v;if(v==="")u.lastIndex=a(l,i(u.lastIndex),c);h++}return h===0?null:f}]})},function(e,t,r){"use strict";var n=r(127)(true);e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=r(74);var a=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if(typeof r==="function"){var s=r.call(e,t);if((typeof s==="undefined"?"undefined":n(s))!=="object"){throw new TypeError("RegExp exec method returned something other than an Object or null")}return s}if(i(e)!=="RegExp"){throw new TypeError("RegExp#exec called on incompatible receiver")}return a.call(e,t)}},function(e,t,r){"use strict";r(198);var n=r(18);var i=r(10);var a=r(7);var s=r(35);var o=r(26);var u=r(199);var l=o("species");var c=!a(function(){var e=/./;e.exec=function(){var e=[];e.groups={a:"7"};return e};return"".replace(e,"$<a>")!=="7"});var f=function(){var e=/(?:)/;var t="ab".split(e);return t.length===2&&t[0]==="a"&&t[1]==="b"}();e.exports=function(e,t,r){var h=o(e);var d=!a(function(){var t={};t[h]=function(){return 7};return""[e](t)!=7});var v=d?!a(function(){var t=false;var r=/a/;r.exec=function(){t=true;return null};if(e==="split"){r.constructor={};r.constructor[l]=function(){return r}}r[h]("");return!t}):undefined;if(!d||!v||e==="replace"&&!c||e==="split"&&!f){var p=/./[h];var m=r(s,h,""[e],function e(t,r,n,i,a){if(r.exec===u){if(d&&!a){return{done:true,value:p.call(r,n,i)}}return{done:true,value:t.call(n,r,i)}}return{done:false}});var g=m[0];var y=m[1];n(String.prototype,e,g);i(RegExp.prototype,h,t==2?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,r){"use strict";var n=r(12);var i=r(57);var a=r(37);var s=r(38);var o=r(203);var u=r(204);var l=Math.max;var c=Math.min;var f=Math.floor;var h=/\$([$&`']|\d\d?|<[^>]*>)/g;var d=/\$([$&`']|\d\d?)/g;var v=function e(t){return t===undefined?t:String(t)};r(205)("replace",2,function(e,t,r,i){return[function n(i,a){var s=e(this);var o=i==undefined?undefined:i[t];return o!==undefined?o.call(i,s,a):r.call(String(s),i,a)},function(e,t){var f=i(r,e,this,t);if(f.done)return f.value;var h=n(e);var d=String(this);var p=typeof t==="function";if(!p)t=String(t);var m=h.global;if(m){var g=h.unicode;h.lastIndex=0}var y=[];while(true){var b=u(h,d);if(b===null)break;y.push(b);if(!m)break;var _=String(b[0]);if(_==="")h.lastIndex=o(d,a(h.lastIndex),g)}var S="";var A=0;for(var w=0;w<y.length;w++){b=y[w];var x=String(b[0]);var k=l(c(s(b.index),d.length),0);var P=[];for(var C=1;C<b.length;C++){P.push(v(b[C]))}var R=b.groups;if(p){var E=[x].concat(P,k,d);if(R!==undefined)E.push(R);var T=String(t.apply(undefined,E))}else{T=getSubstitution(x,d,k,P,R,t)}if(k>=A){S+=d.slice(A,k)+T;A=k+x.length}}return S+d.slice(A)}]})},function(e,t,r){"use strict";var n=r(12);var i=r(70);var a=r(204);r(205)("search",1,function(e,t,r,s){return[function r(n){var i=e(this);var a=n==undefined?undefined:n[t];return a!==undefined?a.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=s(r,e,this);if(t.done)return t.value;var o=n(e);var u=String(this);var l=o.lastIndex;if(!i(l,0))o.lastIndex=0;var c=a(o,u);if(!i(o.lastIndex,l))o.lastIndex=l;return c===null?-1:c.index}]})},function(e,t,r){"use strict";var n=r(134);var i=r(12);var a=r(209);var s=r(203);var o=r(37);var u=r(204);var l=r(199);var c=Math.min;var f=[].push;var h="split";var d="length";var v="lastIndex";var p=!!function(){try{return new RegExp("x","y")}catch(e){}}();r(205)("split",2,function(e,t,r,m){var g;if("abbc"[h](/(b)*/)[1]=="c"||"test"[h](/(?:)/,-1)[d]!=4||"ab"[h](/(?:ab)*/)[d]!=2||"."[h](/(.?)(.?)/)[d]!=4||"."[h](/()()/)[d]>1||""[h](/.?/)[d]){g=function e(t,i){var a=String(this);if(t===undefined&&i===0)return[];if(!n(t))return r.call(a,t,i);var s=[];var o=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"");var u=0;var c=i===undefined?4294967295:i>>>0;var h=new RegExp(t.source,o+"g");var p,m,g;while(p=l.call(h,a)){m=h[v];if(m>u){s.push(a.slice(u,p.index));if(p[d]>1&&p.index<a[d])f.apply(s,p.slice(1));g=p[0][d];u=m;if(s[d]>=c)break}if(h[v]===p.index)h[v]++}if(u===a[d]){if(g||!h.test(""))s.push("")}else s.push(a.slice(u));return s[d]>c?s.slice(0,c):s}}else if("0"[h](undefined,0)[d]){g=function e(t,n){return t===undefined&&n===0?[]:r.call(this,t,n)}}else{g=r}return[function r(n,i){var a=e(this);var s=n==undefined?undefined:n[t];return s!==undefined?s.call(n,a,i):g.call(String(a),n,i)},function(e,t){var n=m(g,e,this,t,g!==r);if(n.done)return n.value;var l=i(e);var f=String(this);var h=a(l,RegExp);var d=l.unicode;var v=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(p?"y":"g");var y=new h(p?l:"^(?:"+l.source+")",v);var b=t===undefined?4294967295:t>>>0;if(b===0)return[];if(f.length===0)return u(y,f)===null?[f]:[];var _=0;var S=0;var A=[];while(S<f.length){y.lastIndex=p?S:0;var w=u(y,p?f:f.slice(S));var x;if(w===null||(x=c(o(y.lastIndex+(p?0:S)),f.length))===_){S=s(f,S,d)}else{A.push(f.slice(_,S));if(A.length===b)return A;for(var k=1;k<=w.length-1;k++){A.push(w[k]);if(A.length===b)return A}S=_=x}}A.push(f.slice(_));return A}]})},function(e,t,r){"use strict";var n=r(12);var i=r(21);var a=r(26)("species");e.exports=function(e,t){var r=n(e).constructor;var s;return r===undefined||(s=n(r)[a])==undefined?t:i(s)}},function(e,t,r){"use strict";var n=r(24);var i=r(4);var a=r(20);var s=r(74);var o=r(8);var u=r(13);var l=r(21);var c=r(211);var f=r(212);var h=r(209);var d=r(213).set;var v=r(214)();var p=r(215);var m=r(216);var g=r(217);var y=r(218);var b="Promise";var _=i.TypeError;var S=i.process;var A=S&&S.versions;var w=A&&A.v8||"";var x=i[b];var k=s(S)=="process";var P=function e(){};var C,R,E,T;var O=R=p.f;var I=!!function(){try{var e=x.resolve(1);var t=(e.constructor={})[r(26)("species")]=function(e){e(P,P)};return(k||typeof PromiseRejectionEvent=="function")&&e.then(P)instanceof t&&w.indexOf("6.6")!==0&&g.indexOf("Chrome/66")===-1}catch(e){}}();var F=function e(t){var r;return u(t)&&typeof(r=t.then)=="function"?r:false};var L=function e(t,r){if(t._n)return;t._n=true;var n=t._c;v(function(){var e=t._v;var i=t._s==1;var a=0;var s=function r(n){var a=i?n.ok:n.fail;var s=n.resolve;var o=n.reject;var u=n.domain;var l,c,f;try{if(a){if(!i){if(t._h==2)j(t);t._h=1}if(a===true)l=e;else{if(u)u.enter();l=a(e);if(u){u.exit();f=true}}if(l===n.promise){o(_("Promise-chain cycle"))}else if(c=F(l)){c.call(l,s,o)}else s(l)}else o(e)}catch(e){if(u&&!f)u.exit();o(e)}};while(n.length>a){s(n[a++])}t._c=[];t._n=false;if(r&&!t._h)M(t)})};var M=function e(t){d.call(i,function(){var e=t._v;var r=N(t);var n,a,s;if(r){n=m(function(){if(k){S.emit("unhandledRejection",e,t)}else if(a=i.onunhandledrejection){a({promise:t,reason:e})}else if((s=i.console)&&s.error){s.error("Unhandled promise rejection",e)}});t._h=k||N(t)?2:1}t._a=undefined;if(r&&n.e)throw n.v})};var N=function e(t){return t._h!==1&&(t._a||t._c).length===0};var j=function e(t){d.call(i,function(){var e;if(k){S.emit("rejectionHandled",t)}else if(e=i.onrejectionhandled){e({promise:t,reason:t._v})}})};var D=function e(t){var r=this;if(r._d)return;r._d=true;r=r._w||r;r._v=t;r._s=2;if(!r._a)r._a=r._c.slice();L(r,true)};var q=function e(t){var r=this;var n;if(r._d)return;r._d=true;r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");if(n=F(t)){v(function(){var i={_w:r,_d:false};try{n.call(t,a(e,i,1),a(D,i,1))}catch(e){D.call(i,e)}})}else{r._v=t;r._s=1;L(r,false)}}catch(e){D.call({_w:r,_d:false},e)}};if(!I){x=function e(t){c(this,x,b,"_h");l(t);C.call(this);try{t(a(q,this,1),a(D,this,1))}catch(e){D.call(this,e)}};C=function e(t){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};C.prototype=r(219)(x.prototype,{then:function e(t,r){var n=O(h(this,x));n.ok=typeof t=="function"?t:true;n.fail=typeof r=="function"&&r;n.domain=k?S.domain:undefined;this._c.push(n);if(this._a)this._a.push(n);if(this._s)L(this,false);return n.promise},catch:function e(t){return this.then(undefined,t)}});E=function e(){var t=new C;this.promise=t;this.resolve=a(q,t,1);this.reject=a(D,t,1)};p.f=O=function e(t){return t===x||t===T?new E(t):R(t)}}o(o.G+o.W+o.F*!I,{Promise:x});r(25)(x,b);r(193)(b);T=r(9)[b];o(o.S+o.F*!I,b,{reject:function e(t){var r=O(this);var n=r.reject;n(t);return r.promise}});o(o.S+o.F*(n||!I),b,{resolve:function e(t){return y(n&&this===T?x:this,t)}});o(o.S+o.F*!(I&&r(166)(function(e){x.all(e)["catch"](P)})),b,{all:function e(t){var r=this;var n=O(r);var i=n.resolve;var a=n.reject;var s=m(function(){var e=[];var n=0;var s=1;f(t,false,function(t){var o=n++;var u=false;e.push(undefined);s++;r.resolve(t).then(function(t){if(u)return;u=true;e[o]=t;--s||i(e)},a)});--s||i(e)});if(s.e)a(s.v);return n.promise},race:function e(t){var r=this;var n=O(r);var i=n.reject;var a=m(function(){f(t,false,function(e){r.resolve(e).then(n.resolve,i)})});if(a.e)i(a.v);return n.promise}})},function(e,t,r){"use strict";e.exports=function(e,t,r,n){if(!(e instanceof t)||n!==undefined&&n in e){throw TypeError(r+": incorrect invocation!")}return e}},function(e,t,r){"use strict";var n=r(20);var i=r(162);var a=r(163);var s=r(12);var o=r(37);var u=r(165);var l={};var c={};var f=e.exports=function(e,t,r,f,h){var d=h?function(){return e}:u(e);var v=n(r,f,t?2:1);var p=0;var m,g,y,b;if(typeof d!="function")throw TypeError(e+" is not iterable!");if(a(d))for(m=o(e.length);m>p;p++){b=t?v(s(g=e[p])[0],g[1]):v(e[p]);if(b===l||b===c)return b}else for(y=d.call(e);!(g=y.next()).done;){b=i(y,v,g.value,t);if(b===l||b===c)return b}};f.BREAK=l;f.RETURN=c},function(e,t,r){"use strict";var n=r(20);var i=r(77);var a=r(47);var s=r(15);var o=r(4);var u=o.process;var l=o.setImmediate;var c=o.clearImmediate;var f=o.MessageChannel;var h=o.Dispatch;var d=0;var v={};var p="onreadystatechange";var m,g,y;var b=function e(){var t=+this;if(v.hasOwnProperty(t)){var r=v[t];delete v[t];r()}};var _=function e(t){b.call(t.data)};if(!l||!c){l=function e(t){var r=[];var n=1;while(arguments.length>n){r.push(arguments[n++])}v[++d]=function(){i(typeof t=="function"?t:Function(t),r)};m(d);return d};c=function e(t){delete v[t]};if(r(34)(u)=="process"){m=function e(t){u.nextTick(n(b,t,1))}}else if(h&&h.now){m=function e(t){h.now(n(b,t,1))}}else if(f){g=new f;y=g.port2;g.port1.onmessage=_;m=n(y.postMessage,y,1)}else if(o.addEventListener&&typeof postMessage=="function"&&!o.importScripts){m=function e(t){o.postMessage(t+"","*")};o.addEventListener("message",_,false)}else if(p in s("script")){m=function e(t){a.appendChild(s("script"))[p]=function(){a.removeChild(this);b.call(t)}}}else{m=function e(t){setTimeout(n(b,t,1),0)}}}e.exports={set:l,clear:c}},function(e,t,r){"use strict";var n=r(4);var i=r(213).set;var a=n.MutationObserver||n.WebKitMutationObserver;var s=n.process;var o=n.Promise;var u=r(34)(s)=="process";e.exports=function(){var e,t,r;var l=function n(){var i,a;if(u&&(i=s.domain))i.exit();while(e){a=e.fn;e=e.next;try{a()}catch(n){if(e)r();else t=undefined;throw n}}t=undefined;if(i)i.enter()};if(u){r=function e(){s.nextTick(l)}}else if(a&&!(n.navigator&&n.navigator.standalone)){var c=true;var f=document.createTextNode("");new a(l).observe(f,{characterData:true});r=function e(){f.data=c=!c}}else if(o&&o.resolve){var h=o.resolve(undefined);r=function e(){h.then(l)}}else{r=function e(){i.call(n,l)}}return function(n){var i={fn:n,next:undefined};if(t)t.next=i;if(!e){e=i;r()}t=i}}},function(e,t,r){"use strict";var n=r(21);function i(e){var t,r;this.promise=new e(function(e,n){if(t!==undefined||r!==undefined)throw TypeError("Bad Promise constructor");t=e;r=n});this.resolve=n(t);this.reject=n(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict";e.exports=function(e){try{return{e:false,v:e()}}catch(e){return{e:true,v:e}}}},function(e,t,r){"use strict";var n=r(4);var i=n.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){"use strict";var n=r(12);var i=r(13);var a=r(215);e.exports=function(e,t){n(e);if(i(t)&&t.constructor===e)return t;var r=a.f(e);var s=r.resolve;s(t);return r.promise}},function(e,t,r){"use strict";var n=r(18);e.exports=function(e,t,r){for(var i in t){n(e,i,t[i],r)}return e}},function(e,t,r){"use strict";var n=r(221);var i=r(222);var a="Map";e.exports=r(223)(a,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{get:function e(t){var r=n.getEntry(i(this,a),t);return r&&r.v},set:function e(t,r){return n.def(i(this,a),t===0?0:t,r)}},n,true)},function(e,t,r){"use strict";var n=r(11).f;var i=r(45);var a=r(219);var s=r(20);var o=r(211);var u=r(212);var l=r(128);var c=r(195);var f=r(193);var h=r(6);var d=r(22).fastKey;var v=r(222);var p=h?"_s":"size";var m=function e(t,r){var n=d(r);var i;if(n!=="F")return t._i[n];for(i=t._f;i;i=i.n){if(i.k==r)return i}};e.exports={getConstructor:function e(t,r,l,c){var f=t(function(e,t){o(e,f,r,"_i");e._t=r;e._i=i(null);e._f=undefined;e._l=undefined;e[p]=0;if(t!=undefined)u(t,l,e[c],e)});a(f.prototype,{clear:function e(){for(var t=v(this,r),n=t._i,i=t._f;i;i=i.n){i.r=true;if(i.p)i.p=i.p.n=undefined;delete n[i.i]}t._f=t._l=undefined;t[p]=0},delete:function e(t){var n=v(this,r);var i=m(n,t);if(i){var a=i.n;var s=i.p;delete n._i[i.i];i.r=true;if(s)s.n=a;if(a)a.p=s;if(n._f==i)n._f=a;if(n._l==i)n._l=s;n[p]--}return!!i},forEach:function e(t){v(this,r);var n=s(t,arguments.length>1?arguments[1]:undefined,3);var i;while(i=i?i.n:this._f){n(i.v,i.k,this);while(i&&i.r){i=i.p}}},has:function e(t){return!!m(v(this,r),t)}});if(h)n(f.prototype,"size",{get:function e(){return v(this,r)[p]}});return f},def:function e(t,r,n){var i=m(t,r);var a,s;if(i){i.v=n}else{t._l=i={i:s=d(r,true),k:r,v:n,p:a=t._l,n:undefined,r:false};if(!t._f)t._f=i;if(a)a.n=i;t[p]++;if(s!=="F")t._i[s]=i}return t},getEntry:m,setStrong:function e(t,r,n){l(t,r,function(e,t){this._t=v(e,r);this._k=t;this._l=undefined},function(){var e=this;var t=e._k;var r=e._l;while(r&&r.r){r=r.p}if(!e._t||!(e._l=r=r?r.n:e._t._f)){e._t=undefined;return c(1)}if(t=="keys")return c(0,r.k);if(t=="values")return c(0,r.v);return c(0,[r.k,r.v])},n?"entries":"values",!n,true);f(r)}}},function(e,t,r){"use strict";var n=r(13);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,r){"use strict";var n=r(4);var i=r(8);var a=r(18);var s=r(219);var o=r(22);var u=r(212);var l=r(211);var c=r(13);var f=r(7);var h=r(166);var d=r(25);var v=r(87);e.exports=function(e,t,r,p,m,g){var y=n[e];var b=y;var _=m?"set":"add";var S=b&&b.prototype;var A={};var w=function e(t){var r=S[t];a(S,t,t=="delete"?function(e){return g&&!c(e)?false:r.call(this,e===0?0:e)}:t=="has"?function e(t){return g&&!c(t)?false:r.call(this,t===0?0:t)}:t=="get"?function e(t){return g&&!c(t)?undefined:r.call(this,t===0?0:t)}:t=="add"?function e(t){r.call(this,t===0?0:t);return this}:function e(t,n){r.call(this,t===0?0:t,n);return this})};if(typeof b!="function"||!(g||S.forEach&&!f(function(){(new b).entries().next()}))){b=p.getConstructor(t,e,m,_);s(b.prototype,r);o.NEED=true}else{var x=new b;var k=x[_](g?{}:-0,1)!=x;var P=f(function(){x.has(1)});var C=h(function(e){new b(e)});var R=!g&&f(function(){var e=new b;var t=5;while(t--){e[_](t,t)}return!e.has(-0)});if(!C){b=t(function(t,r){l(t,b,e);var n=v(new y,t,b);if(r!=undefined)u(r,m,n[_],n);return n});b.prototype=S;S.constructor=b}if(P||R){w("delete");w("has");m&&w("get")}if(R||k)w(_);if(g&&S.clear)delete S.clear}d(b,e);A[e]=b;i(i.G+i.W+i.F*(b!=y),A);if(!g)p.setStrong(b,e,m);return b}},function(e,t,r){"use strict";var n=r(221);var i=r(222);var a="Set";e.exports=r(223)(a,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{add:function e(t){return n.def(i(this,a),t=t===0?0:t,t)}},n)},function(e,t,r){"use strict";var n=r(173)(0);var i=r(18);var a=r(22);var s=r(68);var o=r(226);var u=r(13);var l=r(7);var c=r(222);var f="WeakMap";var h=a.getWeak;var d=Object.isExtensible;var v=o.ufstore;var p={};var m;var g=function e(t){return function e(){return t(this,arguments.length>0?arguments[0]:undefined)}};var y={get:function e(t){if(u(t)){var r=h(t);if(r===true)return v(c(this,f)).get(t);return r?r[this._i]:undefined}},set:function e(t,r){return o.def(c(this,f),t,r)}};var b=e.exports=r(223)(f,g,y,o,true,true);if(l(function(){return(new b).set((Object.freeze||Object)(p),7).get(p)!=7})){m=o.getConstructor(g,f);s(m.prototype,y);a.NEED=true;n(["delete","has","get","set"],function(e){var t=b.prototype;var r=t[e];i(t,e,function(t,n){if(u(t)&&!d(t)){if(!this._f)this._f=new m;var i=this._f[e](t,n);return e=="set"?this:i}return r.call(this,t,n)})})}},function(e,t,r){"use strict";var n=r(219);var i=r(22).getWeak;var a=r(12);var s=r(13);var o=r(211);var u=r(212);var l=r(173);var c=r(5);var f=r(222);var h=l(5);var d=l(6);var v=0;var p=function e(t){return t._l||(t._l=new m)};var m=function e(){this.a=[]};var g=function e(t,r){return h(t.a,function(e){return e[0]===r})};m.prototype={get:function e(t){var r=g(this,t);if(r)return r[1]},has:function e(t){return!!g(this,t)},set:function e(t,r){var n=g(this,t);if(n)n[1]=r;else this.a.push([t,r])},delete:function e(t){var r=d(this.a,function(e){return e[0]===t});if(~r)this.a.splice(r,1);return!!~r}};e.exports={getConstructor:function e(t,r,a,l){var h=t(function(e,t){o(e,h,r,"_i");e._t=r;e._i=v++;e._l=undefined;if(t!=undefined)u(t,a,e[l],e)});n(h.prototype,{delete:function e(t){if(!s(t))return false;var n=i(t);if(n===true)return p(f(this,r))["delete"](t);return n&&c(n,this._i)&&delete n[this._i]},has:function e(t){if(!s(t))return false;var n=i(t);if(n===true)return p(f(this,r)).has(t);return n&&c(n,this._i)}});return h},def:function e(t,r,n){var s=i(a(r),true);if(s===true)p(t).set(r,n);else s[t._i]=n;return t},ufstore:p}},function(e,t,r){"use strict";var n=r(226);var i=r(222);var a="WeakSet";r(223)(a,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{add:function e(t){return n.def(i(this,a),t,true)}},n,false,true)},function(e,t,r){"use strict";var n=r(8);var i=r(229);var a=r(230);var s=r(12);var o=r(39);var u=r(37);var l=r(13);var c=r(4).ArrayBuffer;var f=r(209);var h=a.ArrayBuffer;var d=a.DataView;var v=i.ABV&&c.isView;var p=h.prototype.slice;var m=i.VIEW;var g="ArrayBuffer";n(n.G+n.W+n.F*(c!==h),{ArrayBuffer:h});n(n.S+n.F*!i.CONSTR,g,{isView:function e(t){return v&&v(t)||l(t)&&m in t}});n(n.P+n.U+n.F*r(7)(function(){return!new h(2).slice(1,undefined).byteLength}),g,{slice:function e(t,r){if(p!==undefined&&r===undefined)return p.call(s(this),t);var n=s(this).byteLength;var i=o(t,n);var a=o(r===undefined?n:r,n);var l=new(f(this,h))(u(a-i));var c=new d(this);var v=new d(l);var m=0;while(i<a){v.setUint8(m++,c.getUint8(i++))}return l}});r(193)(g)},function(e,t,r){"use strict";var n=r(4);var i=r(10);var a=r(19);var s=a("typed_array");var o=a("view");var u=!!(n.ArrayBuffer&&n.DataView);var l=u;var c=0;var f=9;var h;var d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(c<f){if(h=n[d[c++]]){i(h.prototype,s,true);i(h.prototype,o,true)}else l=false}e.exports={ABV:u,CONSTR:l,TYPED:s,VIEW:o}},function(e,t,r){"use strict";var n=r(4);var i=r(6);var a=r(24);var s=r(229);var o=r(10);var u=r(219);var l=r(7);var c=r(211);var f=r(38);var h=r(37);var d=r(231);var v=r(49).f;var p=r(11).f;var m=r(189);var g=r(25);var y="ArrayBuffer";var b="DataView";var _="prototype";var S="Wrong length!";var A="Wrong index!";var w=n[y];var x=n[b];var k=n.Math;var P=n.RangeError;var C=n.Infinity;var R=w;var E=k.abs;var T=k.pow;var O=k.floor;var I=k.log;var F=k.LN2;var L="buffer";var M="byteLength";var N="byteOffset";var j=i?"_b":L;var D=i?"_l":M;var q=i?"_o":N;function U(e,t,r){var n=new Array(r);var i=r*8-t-1;var a=(1<<i)-1;var s=a>>1;var o=t===23?T(2,-24)-T(2,-77):0;var u=0;var l=e<0||e===0&&1/e<0?1:0;var c,f,h;e=E(e);if(e!=e||e===C){f=e!=e?1:0;c=a}else{c=O(I(e)/F);if(e*(h=T(2,-c))<1){c--;h*=2}if(c+s>=1){e+=o/h}else{e+=o*T(2,1-s)}if(e*h>=2){c++;h/=2}if(c+s>=a){f=0;c=a}else if(c+s>=1){f=(e*h-1)*T(2,t);c=c+s}else{f=e*T(2,s-1)*T(2,t);c=0}}for(;t>=8;n[u++]=f&255,f/=256,t-=8){}c=c<<t|f;i+=t;for(;i>0;n[u++]=c&255,c/=256,i-=8){}n[--u]|=l*128;return n}function W(e,t,r){var n=r*8-t-1;var i=(1<<n)-1;var a=i>>1;var s=n-7;var o=r-1;var u=e[o--];var l=u&127;var c;u>>=7;for(;s>0;l=l*256+e[o],o--,s-=8){}c=l&(1<<-s)-1;l>>=-s;s+=t;for(;s>0;c=c*256+e[o],o--,s-=8){}if(l===0){l=1-a}else if(l===i){return c?NaN:u?-C:C}else{c=c+T(2,t);l=l-a}return(u?-1:1)*c*T(2,l-t)}function B(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function G(e){return[e&255]}function z(e){return[e&255,e>>8&255]}function H(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]}function X(e){return U(e,52,8)}function V(e){return U(e,23,4)}function Y(e,t,r){p(e[_],t,{get:function e(){return this[r]}})}function Q(e,t,r,n){var i=+r;var a=d(i);if(a+t>e[D])throw P(A);var s=e[j]._b;var o=a+e[q];var u=s.slice(o,o+t);return n?u:u.reverse()}function K(e,t,r,n,i,a){var s=+r;var o=d(s);if(o+t>e[D])throw P(A);var u=e[j]._b;var l=o+e[q];var c=n(+i);for(var f=0;f<t;f++){u[l+f]=c[a?f:t-f-1]}}if(!s.ABV){w=function e(t){c(this,w,y);var r=d(t);this._b=m.call(new Array(r),0);this[D]=r};x=function e(t,r,n){c(this,x,b);c(t,w,b);var i=t[D];var a=f(r);if(a<0||a>i)throw P("Wrong offset!");n=n===undefined?i-a:h(n);if(a+n>i)throw P(S);this[j]=t;this[q]=a;this[D]=n};if(i){Y(w,M,"_l");Y(x,L,"_b");Y(x,M,"_l");Y(x,N,"_o")}u(x[_],{getInt8:function e(t){return Q(this,1,t)[0]<<24>>24},getUint8:function e(t){return Q(this,1,t)[0]},getInt16:function e(t){var r=Q(this,2,t,arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function e(t){var r=Q(this,2,t,arguments[1]);return r[1]<<8|r[0]},getInt32:function e(t){return B(Q(this,4,t,arguments[1]))},getUint32:function e(t){return B(Q(this,4,t,arguments[1]))>>>0},getFloat32:function e(t){return W(Q(this,4,t,arguments[1]),23,4)},getFloat64:function e(t){return W(Q(this,8,t,arguments[1]),52,8)},setInt8:function e(t,r){K(this,1,t,G,r)},setUint8:function e(t,r){K(this,1,t,G,r)},setInt16:function e(t,r){K(this,2,t,z,r,arguments[2])},setUint16:function e(t,r){K(this,2,t,z,r,arguments[2])},setInt32:function e(t,r){K(this,4,t,H,r,arguments[2])},setUint32:function e(t,r){K(this,4,t,H,r,arguments[2])},setFloat32:function e(t,r){K(this,4,t,V,r,arguments[2])},setFloat64:function e(t,r){K(this,8,t,X,r,arguments[2])}})}else{if(!l(function(){w(1)})||!l(function(){new w(-1)})||l(function(){new w;new w(1.5);new w(NaN);return w.name!=y})){w=function e(t){c(this,w);return new R(d(t))};var J=w[_]=R[_];for(var Z=v(R),$=0,ee;Z.length>$;){if(!((ee=Z[$++])in w))o(w,ee,R[ee])}if(!a)J.constructor=w}var te=new x(new w(2));var re=x[_].setInt8;te.setInt8(0,2147483648);te.setInt8(1,2147483649);if(te.getInt8(0)||!te.getInt8(1))u(x[_],{setInt8:function e(t,r){re.call(this,t,r<<24>>24)},setUint8:function e(t,r){re.call(this,t,r<<24>>24)}},true)}g(w,y);g(x,b);o(x[_],s.VIEW,true);t[y]=w;t[b]=x},function(e,t,r){"use strict";var n=r(38);var i=r(37);e.exports=function(e){if(e===undefined)return 0;var t=n(e);var r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){"use strict";var n=r(8);n(n.G+n.W+n.F*!r(229).ABV,{DataView:r(230).DataView})},function(e,t,r){"use strict";r(234)("Int8",1,function(e){return function t(r,n,i){return e(this,r,n,i)}})},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if(r(6)){var i=r(24);var a=r(4);var s=r(7);var o=r(8);var u=r(229);var l=r(230);var c=r(20);var f=r(211);var h=r(17);var d=r(10);var v=r(219);var p=r(38);var m=r(37);var g=r(231);var y=r(39);var b=r(16);var _=r(5);var S=r(74);var A=r(13);var w=r(57);var x=r(163);var k=r(45);var P=r(58);var C=r(49).f;var R=r(165);var E=r(19);var T=r(26);var O=r(173);var I=r(36);var F=r(209);var L=r(194);var M=r(129);var N=r(166);var j=r(193);var D=r(189);var q=r(186);var U=r(11);var W=r(50);var B=U.f;var G=W.f;var z=a.RangeError;var H=a.TypeError;var X=a.Uint8Array;var V="ArrayBuffer";var Y="Shared"+V;var Q="BYTES_PER_ELEMENT";var K="prototype";var J=Array[K];var Z=l.ArrayBuffer;var $=l.DataView;var ee=O(0);var te=O(2);var re=O(3);var ne=O(4);var ie=O(5);var ae=O(6);var se=I(true);var oe=I(false);var ue=L.values;var le=L.keys;var ce=L.entries;var fe=J.lastIndexOf;var he=J.reduce;var de=J.reduceRight;var ve=J.join;var pe=J.sort;var me=J.slice;var ge=J.toString;var ye=J.toLocaleString;var be=T("iterator");var _e=T("toStringTag");var Se=E("typed_constructor");var Ae=E("def_constructor");var we=u.CONSTR;var xe=u.TYPED;var ke=u.VIEW;var Pe="Wrong length!";var Ce=O(1,function(e,t){return Ie(F(e,e[Ae]),t)});var Re=s(function(){return new X(new Uint16Array([1]).buffer)[0]===1});var Ee=!!X&&!!X[K].set&&s(function(){new X(1).set({})});var Te=function e(t,r){var n=p(t);if(n<0||n%r)throw z("Wrong offset!");return n};var Oe=function e(t){if(A(t)&&xe in t)return t;throw H(t+" is not a typed array!")};var Ie=function e(t,r){if(!(A(t)&&Se in t)){throw H("It is not a typed array constructor!")}return new t(r)};var Fe=function e(t,r){return Le(F(t,t[Ae]),r)};var Le=function e(t,r){var n=0;var i=r.length;var a=Ie(t,i);while(i>n){a[n]=r[n++]}return a};var Me=function e(t,r,n){B(t,r,{get:function e(){return this._d[n]}})};var Ne=function e(t){var r=w(t);var n=arguments.length;var i=n>1?arguments[1]:undefined;var a=i!==undefined;var s=R(r);var o,u,l,f,h,d;if(s!=undefined&&!x(s)){for(d=s.call(r),l=[],o=0;!(h=d.next()).done;o++){l.push(h.value)}r=l}if(a&&n>2)i=c(i,arguments[2],2);for(o=0,u=m(r.length),f=Ie(this,u);u>o;o++){f[o]=a?i(r[o],o):r[o]}return f};var je=function e(){var t=0;var r=arguments.length;var n=Ie(this,r);while(r>t){n[t]=arguments[t++]}return n};var De=!!X&&s(function(){ye.call(new X(1))});var qe=function e(){return ye.apply(De?me.call(Oe(this)):Oe(this),arguments)};var Ue={copyWithin:function e(t,r){return q.call(Oe(this),t,r,arguments.length>2?arguments[2]:undefined)},every:function e(t){return ne(Oe(this),t,arguments.length>1?arguments[1]:undefined)},fill:function e(t){return D.apply(Oe(this),arguments)},filter:function e(t){return Fe(this,te(Oe(this),t,arguments.length>1?arguments[1]:undefined))},find:function e(t){return ie(Oe(this),t,arguments.length>1?arguments[1]:undefined)},findIndex:function e(t){return ae(Oe(this),t,arguments.length>1?arguments[1]:undefined)},forEach:function e(t){ee(Oe(this),t,arguments.length>1?arguments[1]:undefined)},indexOf:function e(t){return oe(Oe(this),t,arguments.length>1?arguments[1]:undefined)},includes:function e(t){return se(Oe(this),t,arguments.length>1?arguments[1]:undefined)},join:function e(t){return ve.apply(Oe(this),arguments)},lastIndexOf:function e(t){return fe.apply(Oe(this),arguments)},map:function e(t){return Ce(Oe(this),t,arguments.length>1?arguments[1]:undefined)},reduce:function e(t){return he.apply(Oe(this),arguments)},reduceRight:function e(t){return de.apply(Oe(this),arguments)},reverse:function e(){var t=this;var r=Oe(t).length;var n=Math.floor(r/2);var i=0;var a;while(i<n){a=t[i];t[i++]=t[--r];t[r]=a}return t},some:function e(t){return re(Oe(this),t,arguments.length>1?arguments[1]:undefined)},sort:function e(t){return pe.call(Oe(this),t)},subarray:function e(t,r){var n=Oe(this);var i=n.length;var a=y(t,i);return new(F(n,n[Ae]))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,m((r===undefined?i:y(r,i))-a))}};var We=function e(t,r){return Fe(this,me.call(Oe(this),t,r))};var Be=function e(t){Oe(this);var r=Te(arguments[1],1);var n=this.length;var i=w(t);var a=m(i.length);var s=0;if(a+r>n)throw z(Pe);while(s<a){this[r+s]=i[s++]}};var Ge={entries:function e(){return ce.call(Oe(this))},keys:function e(){return le.call(Oe(this))},values:function e(){return ue.call(Oe(this))}};var ze=function e(t,r){return A(t)&&t[xe]&&(typeof r==="undefined"?"undefined":n(r))!="symbol"&&r in t&&String(+r)==String(r)};var He=function e(t,r){return ze(t,r=b(r,true))?h(2,t[r]):G(t,r)};var Xe=function e(t,r,n){if(ze(t,r=b(r,true))&&A(n)&&_(n,"value")&&!_(n,"get")&&!_(n,"set")&&!n.configurable&&(!_(n,"writable")||n.writable)&&(!_(n,"enumerable")||n.enumerable)){t[r]=n.value;return t}return B(t,r,n)};if(!we){W.f=He;U.f=Xe}o(o.S+o.F*!we,"Object",{getOwnPropertyDescriptor:He,defineProperty:Xe});if(s(function(){ge.call({})})){ge=ye=function e(){return ve.call(this)}}var Ve=v({},Ue);v(Ve,Ge);d(Ve,be,Ge.values);v(Ve,{slice:We,set:Be,constructor:function e(){},toString:ge,toLocaleString:qe});Me(Ve,"buffer","b");Me(Ve,"byteOffset","o");Me(Ve,"byteLength","l");Me(Ve,"length","e");B(Ve,_e,{get:function e(){return this[xe]}});e.exports=function(e,t,r,n){n=!!n;var l=e+(n?"Clamped":"")+"Array";var c="get"+e;var h="set"+e;var v=a[l];var p=v||{};var y=v&&P(v);var b=!v||!u.ABV;var _={};var w=v&&v[K];var x=function e(r,n){var i=r._d;return i.v[c](n*t+i.o,Re)};var R=function e(r,i,a){var s=r._d;if(n)a=(a=Math.round(a))<0?0:a>255?255:a&255;s.v[h](i*t+s.o,a,Re)};var E=function e(t,r){B(t,r,{get:function e(){return x(this,r)},set:function e(t){return R(this,r,t)},enumerable:true})};if(b){v=r(function(e,r,n,i){f(e,v,l,"_d");var a=0;var s=0;var o,u,c,h;if(!A(r)){c=g(r);u=c*t;o=new Z(u)}else if(r instanceof Z||(h=S(r))==V||h==Y){o=r;s=Te(n,t);var p=r.byteLength;if(i===undefined){if(p%t)throw z(Pe);u=p-s;if(u<0)throw z(Pe)}else{u=m(i)*t;if(u+s>p)throw z(Pe)}c=u/t}else if(xe in r){return Le(v,r)}else{return Ne.call(v,r)}d(e,"_d",{b:o,o:s,l:u,e:c,v:new $(o)});while(a<c){E(e,a++)}});w=v[K]=k(Ve);d(w,"constructor",v)}else if(!s(function(){v(1)})||!s(function(){new v(-1)})||!N(function(e){new v;new v(null);new v(1.5);new v(e)},true)){v=r(function(e,r,n,i){f(e,v,l);var a;if(!A(r))return new p(g(r));if(r instanceof Z||(a=S(r))==V||a==Y){return i!==undefined?new p(r,Te(n,t),i):n!==undefined?new p(r,Te(n,t)):new p(r)}if(xe in r)return Le(v,r);return Ne.call(v,r)});ee(y!==Function.prototype?C(p).concat(C(y)):C(p),function(e){if(!(e in v))d(v,e,p[e])});v[K]=w;if(!i)w.constructor=v}var T=w[be];var O=!!T&&(T.name=="values"||T.name==undefined);var I=Ge.values;d(v,Se,true);d(w,xe,l);d(w,ke,true);d(w,Ae,v);if(n?new v(1)[_e]!=l:!(_e in w)){B(w,_e,{get:function e(){return l}})}_[l]=v;o(o.G+o.W+o.F*(v!=p),_);o(o.S,l,{BYTES_PER_ELEMENT:t});o(o.S+o.F*s(function(){p.of.call(v,1)}),l,{from:Ne,of:je});if(!(Q in w))d(w,Q,t);o(o.P,l,Ue);j(l);o(o.P+o.F*Ee,l,{set:Be});o(o.P+o.F*!O,l,Ge);if(!i&&w.toString!=ge)w.toString=ge;o(o.P+o.F*s(function(){new v(1).slice()}),l,{slice:We});o(o.P+o.F*(s(function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()})||!s(function(){w.toLocaleString.call([1,2])})),l,{toLocaleString:qe});M[l]=O?T:I;if(!i&&!O)d(w,be,I)}}else e.exports=function(){}},function(e,t,r){"use strict";r(234)("Uint8",1,function(e){return function t(r,n,i){return e(this,r,n,i)}})},function(e,t,r){"use strict";r(234)("Uint8",1,function(e){return function t(r,n,i){return e(this,r,n,i)}},true)},function(e,t,r){"use strict";r(234)("Int16",2,function(e){return function t(r,n,i){return e(this,r,n,i)}})},function(e,t,r){"use strict";r(234)("Uint16",2,function(e){return function t(r,n,i){return e(this,r,n,i)}})},function(e,t,r){"use strict";r(234)("Int32",4,function(e){return function t(r,n,i){return e(this,r,n,i)}})},function(e,t,r){"use strict";r(234)("Uint32",4,function(e){return function t(r,n,i){return e(this,r,n,i)}})},function(e,t,r){"use strict";r(234)("Float32",4,function(e){return function t(r,n,i){return e(this,r,n,i)}})},function(e,t,r){"use strict";r(234)("Float64",8,function(e){return function t(r,n,i){return e(this,r,n,i)}})},function(e,t,r){"use strict";var n=r(8);var i=r(21);var a=r(12);var s=(r(4).Reflect||{}).apply;var o=Function.apply;n(n.S+n.F*!r(7)(function(){s(function(){})}),"Reflect",{apply:function e(t,r,n){var u=i(t);var l=a(n);return s?s(u,r,l):o.call(u,r,l)}})},function(e,t,r){"use strict";var n=r(8);var i=r(45);var a=r(21);var s=r(12);var o=r(13);var u=r(7);var l=r(76);var c=(r(4).Reflect||{}).construct;var f=u(function(){function e(){}return!(c(function(){},[],e)instanceof e)});var h=!u(function(){c(function(){})});n(n.S+n.F*(f||h),"Reflect",{construct:function e(t,r){a(t);s(r);var n=arguments.length<3?t:a(arguments[2]);if(h&&!f)return c(t,r,n);if(t==n){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var u=[null];u.push.apply(u,r);return new(l.apply(t,u))}var d=n.prototype;var v=i(o(d)?d:Object.prototype);var p=Function.apply.call(t,v,r);return o(p)?p:v}})},function(e,t,r){"use strict";var n=r(11);var i=r(8);var a=r(12);var s=r(16);i(i.S+i.F*r(7)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function e(t,r,i){a(t);r=s(r,true);a(i);try{n.f(t,r,i);return true}catch(e){return false}}})},function(e,t,r){"use strict";var n=r(8);var i=r(50).f;var a=r(12);n(n.S,"Reflect",{deleteProperty:function e(t,r){var n=i(a(t),r);return n&&!n.configurable?false:delete t[r]}})},function(e,t,r){"use strict";var n=r(8);var i=r(12);var a=function e(t){this._t=i(t);this._i=0;var r=this._k=[];var n;for(n in t){r.push(n)}};r(130)(a,"Object",function(){var e=this;var t=e._k;var r;do{if(e._i>=t.length)return{value:undefined,done:true}}while(!((r=t[e._i++])in e._t));return{value:r,done:false}});n(n.S,"Reflect",{enumerate:function e(t){return new a(t)}})},function(e,t,r){"use strict";var n=r(50);var i=r(58);var a=r(5);var s=r(8);var o=r(13);var u=r(12);function l(e,t){var r=arguments.length<3?e:arguments[2];var s,c;if(u(e)===r)return e[t];if(s=n.f(e,t))return a(s,"value")?s.value:s.get!==undefined?s.get.call(r):undefined;if(o(c=i(e)))return l(c,t,r)}s(s.S,"Reflect",{get:l})},function(e,t,r){"use strict";var n=r(50);var i=r(8);var a=r(12);i(i.S,"Reflect",{getOwnPropertyDescriptor:function e(t,r){return n.f(a(t),r)}})},function(e,t,r){"use strict";var n=r(8);var i=r(58);var a=r(12);n(n.S,"Reflect",{getPrototypeOf:function e(t){return i(a(t))}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Reflect",{has:function e(t,r){return r in t}})},function(e,t,r){"use strict";var n=r(8);var i=r(12);var a=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function e(t){i(t);return a?a(t):true}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Reflect",{ownKeys:r(254)})},function(e,t,r){"use strict";var n=r(49);var i=r(42);var a=r(12);var s=r(4).Reflect;e.exports=s&&s.ownKeys||function e(t){var r=n.f(a(t));var s=i.f;return s?r.concat(s(t)):r}},function(e,t,r){"use strict";var n=r(8);var i=r(12);var a=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function e(t){i(t);try{if(a)a(t);return true}catch(e){return false}}})},function(e,t,r){"use strict";var n=r(11);var i=r(50);var a=r(58);var s=r(5);var o=r(8);var u=r(17);var l=r(12);var c=r(13);function f(e,t,r){var o=arguments.length<4?e:arguments[3];var h=i.f(l(e),t);var d,v;if(!h){if(c(v=a(e))){return f(v,t,r,o)}h=u(0)}if(s(h,"value")){if(h.writable===false||!c(o))return false;if(d=i.f(o,t)){if(d.get||d.set||d.writable===false)return false;d.value=r;n.f(o,t,d)}else n.f(o,t,u(0,r));return true}return h.set===undefined?false:(h.set.call(o,r),true)}o(o.S,"Reflect",{set:f})},function(e,t,r){"use strict";var n=r(8);var i=r(72);if(i)n(n.S,"Reflect",{setPrototypeOf:function e(t,r){i.check(t,r);try{i.set(t,r);return true}catch(e){return false}}})},function(e,t,r){"use strict";var n=r(8);var i=r(36)(true);n(n.P,"Array",{includes:function e(t){return i(this,t,arguments.length>1?arguments[1]:undefined)}});r(187)("includes")},function(e,t,r){"use strict";var n=r(8);var i=r(260);var a=r(57);var s=r(37);var o=r(21);var u=r(174);n(n.P,"Array",{flatMap:function e(t){var r=a(this);var n,l;o(t);n=s(r.length);l=u(r,0);i(l,r,r,n,0,1,t,arguments[1]);return l}});r(187)("flatMap")},function(e,t,r){"use strict";var n=r(44);var i=r(13);var a=r(37);var s=r(20);var o=r(26)("isConcatSpreadable");function u(e,t,r,l,c,f,h,d){var v=c;var p=0;var m=h?s(h,d,3):false;var g,y;while(p<l){if(p in r){g=m?m(r[p],p,t):r[p];y=false;if(i(g)){y=g[o];y=y!==undefined?!!y:n(g)}if(y&&f>0){v=u(e,t,g,a(g.length),v,f-1)-1}else{if(v>=9007199254740991)throw TypeError();e[v]=g}v++}p++}return v}e.exports=u},function(e,t,r){"use strict";var n=r(8);var i=r(260);var a=r(57);var s=r(37);var o=r(38);var u=r(174);n(n.P,"Array",{flatten:function e(){var t=arguments[0];var r=a(this);var n=s(r.length);var l=u(r,0);i(l,r,r,n,0,t===undefined?1:o(t));return l}});r(187)("flatten")},function(e,t,r){"use strict";var n=r(8);var i=r(127)(true);n(n.P,"String",{at:function e(t){return i(this,t)}})},function(e,t,r){"use strict";var n=r(8);var i=r(264);var a=r(217);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(a),"String",{padStart:function e(t){return i(this,t,arguments.length>1?arguments[1]:undefined,true)}})},function(e,t,r){"use strict";var n=r(37);var i=r(90);var a=r(35);e.exports=function(e,t,r,s){var o=String(a(e));var u=o.length;var l=r===undefined?" ":String(r);var c=n(t);if(c<=u||l=="")return o;var f=c-u;var h=i.call(l,Math.ceil(f/l.length));if(h.length>f)h=h.slice(0,f);return s?h+o:o+h}},function(e,t,r){"use strict";var n=r(8);var i=r(264);var a=r(217);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(a),"String",{padEnd:function e(t){return i(this,t,arguments.length>1?arguments[1]:undefined,false)}})},function(e,t,r){"use strict";r(82)("trimLeft",function(e){return function t(){return e(this,1)}},"trimStart")},function(e,t,r){"use strict";r(82)("trimRight",function(e){return function t(){return e(this,2)}},"trimEnd")},function(e,t,r){"use strict";var n=r(8);var i=r(35);var a=r(37);var s=r(134);var o=r(197);var u=RegExp.prototype;var l=function e(t,r){this._r=t;this._s=r};r(130)(l,"RegExp String",function e(){var t=this._r.exec(this._s);return{value:t,done:t===null}});n(n.P,"String",{matchAll:function e(t){i(this);if(!s(t))throw TypeError(t+" is not a regexp!");var r=String(this);var n="flags"in u?String(t.flags):o.call(t);var c=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);c.lastIndex=a(t.lastIndex);return new l(c,r)}})},function(e,t,r){"use strict";r(28)("asyncIterator")},function(e,t,r){"use strict";r(28)("observable")},function(e,t,r){"use strict";var n=r(8);var i=r(254);var a=r(32);var s=r(50);var o=r(164);n(n.S,"Object",{getOwnPropertyDescriptors:function e(t){var r=a(t);var n=s.f;var u=i(r);var l={};var c=0;var f,h;while(u.length>c){h=n(r,f=u[c++]);if(h!==undefined)o(l,f,h)}return l}})},function(e,t,r){"use strict";var n=r(8);var i=r(273)(false);n(n.S,"Object",{values:function e(t){return i(t)}})},function(e,t,r){"use strict";var n=r(30);var i=r(32);var a=r(43).f;e.exports=function(e){return function(t){var r=i(t);var s=n(r);var o=s.length;var u=0;var l=[];var c;while(o>u){if(a.call(r,c=s[u++])){l.push(e?[c,r[c]]:r[c])}}return l}}},function(e,t,r){"use strict";var n=r(8);var i=r(273)(true);n(n.S,"Object",{entries:function e(t){return i(t)}})},function(e,t,r){"use strict";var n=r(8);var i=r(57);var a=r(21);var s=r(11);r(6)&&n(n.P+r(276),"Object",{__defineGetter__:function e(t,r){s.f(i(this),t,{get:a(r),enumerable:true,configurable:true})}})},function(e,t,r){"use strict";e.exports=r(24)||!r(7)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){});delete r(4)[e]})},function(e,t,r){"use strict";var n=r(8);var i=r(57);var a=r(21);var s=r(11);r(6)&&n(n.P+r(276),"Object",{__defineSetter__:function e(t,r){s.f(i(this),t,{set:a(r),enumerable:true,configurable:true})}})},function(e,t,r){"use strict";var n=r(8);var i=r(57);var a=r(16);var s=r(58);var o=r(50).f;r(6)&&n(n.P+r(276),"Object",{__lookupGetter__:function e(t){var r=i(this);var n=a(t,true);var u;do{if(u=o(r,n))return u.get}while(r=s(r))}})},function(e,t,r){"use strict";var n=r(8);var i=r(57);var a=r(16);var s=r(58);var o=r(50).f;r(6)&&n(n.P+r(276),"Object",{__lookupSetter__:function e(t){var r=i(this);var n=a(t,true);var u;do{if(u=o(r,n))return u.set}while(r=s(r))}})},function(e,t,r){"use strict";var n=r(8);n(n.P+n.R,"Map",{toJSON:r(281)("Map")})},function(e,t,r){"use strict";var n=r(74);var i=r(282);e.exports=function(e){return function t(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,r){"use strict";var n=r(212);e.exports=function(e,t){var r=[];n(e,false,r.push,r,t);return r}},function(e,t,r){"use strict";var n=r(8);n(n.P+n.R,"Set",{toJSON:r(281)("Set")})},function(e,t,r){"use strict";r(285)("Map")},function(e,t,r){"use strict";var n=r(8);e.exports=function(e){n(n.S,e,{of:function e(){var t=arguments.length;var r=new Array(t);while(t--){r[t]=arguments[t]}return new this(r)}})}},function(e,t,r){"use strict";r(285)("Set")},function(e,t,r){"use strict";r(285)("WeakMap")},function(e,t,r){"use strict";r(285)("WeakSet")},function(e,t,r){"use strict";r(290)("Map")},function(e,t,r){"use strict";var n=r(8);var i=r(21);var a=r(20);var s=r(212);e.exports=function(e){n(n.S,e,{from:function e(t){var r=arguments[1];var n,o,u,l;i(this);n=r!==undefined;if(n)i(r);if(t==undefined)return new this;o=[];if(n){u=0;l=a(r,arguments[2],2);s(t,false,function(e){o.push(l(e,u++))})}else{s(t,false,o.push,o)}return new this(o)}})}},function(e,t,r){"use strict";r(290)("Set")},function(e,t,r){"use strict";r(290)("WeakMap")},function(e,t,r){"use strict";r(290)("WeakSet")},function(e,t,r){"use strict";var n=r(8);n(n.G,{global:r(4)})},function(e,t,r){"use strict";var n=r(8);n(n.S,"System",{global:r(4)})},function(e,t,r){"use strict";var n=r(8);var i=r(34);n(n.S,"Error",{isError:function e(t){return i(t)==="Error"}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{clamp:function e(t,r,n){return Math.min(n,Math.max(r,t))}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,r){"use strict";var n=r(8);var i=180/Math.PI;n(n.S,"Math",{degrees:function e(t){return t*i}})},function(e,t,r){"use strict";var n=r(8);var i=r(301);var a=r(113);n(n.S,"Math",{fscale:function e(t,r,n,s,o){return a(i(t,r,n,s,o))}})},function(e,t,r){"use strict";e.exports=Math.scale||function e(t,r,n,i,a){if(arguments.length===0||t!=t||r!=r||n!=n||i!=i||a!=a)return NaN;if(t===Infinity||t===-Infinity)return t;return(t-r)*(a-i)/(n-r)+i}},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{iaddh:function e(t,r,n,i){var a=t>>>0;var s=r>>>0;var o=n>>>0;return s+(i>>>0)+((a&o|(a|o)&~(a+o>>>0))>>>31)|0}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{isubh:function e(t,r,n,i){var a=t>>>0;var s=r>>>0;var o=n>>>0;return s-(i>>>0)-((~a&o|~(a^o)&a-o>>>0)>>>31)|0}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{imulh:function e(t,r){var n=65535;var i=+t;var a=+r;var s=i&n;var o=a&n;var u=i>>16;var l=a>>16;var c=(u*o>>>0)+(s*o>>>16);return u*l+(c>>16)+((s*l>>>0)+(c&n)>>16)}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,r){"use strict";var n=r(8);var i=Math.PI/180;n(n.S,"Math",{radians:function e(t){return t*i}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{scale:r(301)})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{umulh:function e(t,r){var n=65535;var i=+t;var a=+r;var s=i&n;var o=a&n;var u=i>>>16;var l=a>>>16;var c=(u*o>>>0)+(s*o>>>16);return u*l+(c>>>16)+((s*l>>>0)+(c&n)>>>16)}})},function(e,t,r){"use strict";var n=r(8);n(n.S,"Math",{signbit:function e(t){return(t=+t)!=t?t:t==0?1/t==Infinity:t>0}})},function(e,t,r){"use strict";var n=r(8);var i=r(9);var a=r(4);var s=r(209);var o=r(218);n(n.P+n.R,"Promise",{finally:function e(t){var r=s(this,i.Promise||a.Promise);var n=typeof t=="function";return this.then(n?function(e){return o(r,t()).then(function(){return e})}:t,n?function(e){return o(r,t()).then(function(){throw e})}:t)}})},function(e,t,r){"use strict";var n=r(8);var i=r(215);var a=r(216);n(n.S,"Promise",{try:function e(t){var r=i.f(this);var n=a(t);(n.e?r.reject:r.resolve)(n.v);return r.promise}})},function(e,t,r){"use strict";var n=r(313);var i=r(12);var a=n.key;var s=n.set;n.exp({defineMetadata:function e(t,r,n,o){s(t,r,i(n),a(o))}})},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=r(220);var a=r(8);var s=r(23)("metadata");var o=s.store||(s.store=new(r(225)));var u=function e(t,r,n){var a=o.get(t);if(!a){if(!n)return undefined;o.set(t,a=new i)}var s=a.get(r);if(!s){if(!n)return undefined;a.set(r,s=new i)}return s};var l=function e(t,r,n){var i=u(r,n,false);return i===undefined?false:i.has(t)};var c=function e(t,r,n){var i=u(r,n,false);return i===undefined?undefined:i.get(t)};var f=function e(t,r,n,i){u(n,i,true).set(t,r)};var h=function e(t,r){var n=u(t,r,false);var i=[];if(n)n.forEach(function(e,t){i.push(t)});return i};var d=function e(t){return t===undefined||(typeof t==="undefined"?"undefined":n(t))=="symbol"?t:String(t)};var v=function e(t){a(a.S,"Reflect",t)};e.exports={store:o,map:u,has:l,get:c,set:f,keys:h,key:d,exp:v}},function(e,t,r){"use strict";var n=r(313);var i=r(12);var a=n.key;var s=n.map;var o=n.store;n.exp({deleteMetadata:function e(t,r){var n=arguments.length<3?undefined:a(arguments[2]);var u=s(i(r),n,false);if(u===undefined||!u["delete"](t))return false;if(u.size)return true;var l=o.get(r);l["delete"](n);return!!l.size||o["delete"](r)}})},function(e,t,r){"use strict";var n=r(313);var i=r(12);var a=r(58);var s=n.has;var o=n.get;var u=n.key;var l=function e(t,r,n){var i=s(t,r,n);if(i)return o(t,r,n);var u=a(r);return u!==null?e(t,u,n):undefined};n.exp({getMetadata:function e(t,r){return l(t,i(r),arguments.length<3?undefined:u(arguments[2]))}})},function(e,t,r){"use strict";var n=r(224);var i=r(282);var a=r(313);var s=r(12);var o=r(58);var u=a.keys;var l=a.key;var c=function e(t,r){var a=u(t,r);var s=o(t);if(s===null)return a;var l=e(s,r);return l.length?a.length?i(new n(a.concat(l))):l:a};a.exp({getMetadataKeys:function e(t){return c(s(t),arguments.length<2?undefined:l(arguments[1]))}})},function(e,t,r){"use strict";var n=r(313);var i=r(12);var a=n.get;var s=n.key;n.exp({getOwnMetadata:function e(t,r){return a(t,i(r),arguments.length<3?undefined:s(arguments[2]))}})},function(e,t,r){"use strict";var n=r(313);var i=r(12);var a=n.keys;var s=n.key;n.exp({getOwnMetadataKeys:function e(t){return a(i(t),arguments.length<2?undefined:s(arguments[1]))}})},function(e,t,r){"use strict";var n=r(313);var i=r(12);var a=r(58);var s=n.has;var o=n.key;var u=function e(t,r,n){var i=s(t,r,n);if(i)return true;var o=a(r);return o!==null?e(t,o,n):false};n.exp({hasMetadata:function e(t,r){return u(t,i(r),arguments.length<3?undefined:o(arguments[2]))}})},function(e,t,r){"use strict";var n=r(313);var i=r(12);var a=n.has;var s=n.key;n.exp({hasOwnMetadata:function e(t,r){return a(t,i(r),arguments.length<3?undefined:s(arguments[2]))}})},function(e,t,r){"use strict";var n=r(313);var i=r(12);var a=r(21);var s=n.key;var o=n.set;n.exp({metadata:function e(t,r){return function e(n,u){o(t,r,(u!==undefined?i:a)(n),s(u))}}})},function(e,t,r){"use strict";var n=r(8);var i=r(214)();var a=r(4).process;var s=r(34)(a)=="process";n(n.G,{asap:function e(t){var r=s&&a.domain;i(r?r.bind(t):t)}})},function(e,t,r){"use strict";var n=r(8);var i=r(4);var a=r(9);var s=r(214)();var o=r(26)("observable");var u=r(21);var l=r(12);var c=r(211);var f=r(219);var h=r(10);var d=r(212);var v=d.RETURN;var p=function e(t){return t==null?undefined:u(t)};var m=function e(t){var r=t._c;if(r){t._c=undefined;r()}};var g=function e(t){return t._o===undefined};var y=function e(t){if(!g(t)){t._o=undefined;m(t)}};var b=function e(t,r){l(t);this._c=undefined;this._o=t;t=new _(this);try{var n=r(t);var i=n;if(n!=null){if(typeof n.unsubscribe==="function")n=function e(){i.unsubscribe()};else u(n);this._c=n}}catch(e){t.error(e);return}if(g(this))m(this)};b.prototype=f({},{unsubscribe:function e(){y(this)}});var _=function e(t){this._s=t};_.prototype=f({},{next:function e(t){var r=this._s;if(!g(r)){var n=r._o;try{var i=p(n.next);if(i)return i.call(n,t)}catch(e){try{y(r)}finally{throw e}}}},error:function e(t){var r=this._s;if(g(r))throw t;var n=r._o;r._o=undefined;try{var i=p(n.error);if(!i)throw t;t=i.call(n,t)}catch(e){try{m(r)}finally{throw e}}m(r);return t},complete:function e(t){var r=this._s;if(!g(r)){var n=r._o;r._o=undefined;try{var i=p(n.complete);t=i?i.call(n,t):undefined}catch(e){try{m(r)}finally{throw e}}m(r);return t}}});var S=function e(t){c(this,S,"Observable","_f")._f=u(t)};f(S.prototype,{subscribe:function e(t){return new b(t,this._f)},forEach:function e(t){var r=this;return new(a.Promise||i.Promise)(function(e,n){u(t);var i=r.subscribe({next:function e(r){try{return t(r)}catch(e){n(e);i.unsubscribe()}},error:n,complete:e})})}});f(S,{from:function e(t){var r=typeof this==="function"?this:S;var n=p(l(t)[o]);if(n){var i=l(n.call(t));return i.constructor===r?i:new r(function(e){return i.subscribe(e)})}return new r(function(e){var r=false;s(function(){if(!r){try{if(d(t,false,function(t){e.next(t);if(r)return v})===v)return}catch(t){if(r)throw t;e.error(t);return}e.complete()}});return function(){r=true}})},of:function e(){for(var t=0,r=arguments.length,n=new Array(r);t<r;){n[t]=arguments[t++]}return new(typeof this==="function"?this:S)(function(e){var t=false;s(function(){if(!t){for(var r=0;r<n.length;++r){e.next(n[r]);if(t)return}e.complete()}});return function(){t=true}})}});h(S.prototype,o,function(){return this});n(n.G,{Observable:S});r(193)("Observable")},function(e,t,r){"use strict";var n=r(4);var i=r(8);var a=r(217);var s=[].slice;var o=/MSIE .\./.test(a);var u=function e(t){return function(e,r){var n=arguments.length>2;var i=n?s.call(arguments,2):false;return t(n?function(){(typeof e=="function"?e:Function(e)).apply(this,i)}:e,r)}};i(i.G+i.B+i.F*o,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(e,t,r){"use strict";var n=r(8);var i=r(213);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,r){"use strict";var n=r(194);var i=r(30);var a=r(18);var s=r(4);var o=r(10);var u=r(129);var l=r(26);var c=l("iterator");var f=l("toStringTag");var h=u.Array;var d={CSSRuleList:true,CSSStyleDeclaration:false,CSSValueList:false,ClientRectList:false,DOMRectList:false,DOMStringList:false,DOMTokenList:true,DataTransferItemList:false,FileList:false,HTMLAllCollection:false,HTMLCollection:false,HTMLFormElement:false,HTMLSelectElement:false,MediaList:true,MimeTypeArray:false,NamedNodeMap:false,NodeList:true,PaintRequestList:false,Plugin:false,PluginArray:false,SVGLengthList:false,SVGNumberList:false,SVGPathSegList:false,SVGPointList:false,SVGStringList:false,SVGTransformList:false,SourceBufferList:false,StyleSheetList:true,TextTrackCueList:false,TextTrackList:false,TouchList:false};for(var v=i(d),p=0;p<v.length;p++){var m=v[p];var g=d[m];var y=s[m];var b=y&&y.prototype;var _;if(b){if(!b[c])o(b,c,h);if(!b[f])o(b,f,m);u[m]=h;if(g)for(_ in n){if(!b[_])a(b,_,n[_],true)}}}},function(e,t,r){"use strict";(function(e){var t=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(r){"use strict";var n=Object.prototype;var i=n.hasOwnProperty;var a;var s=typeof Symbol==="function"?Symbol:{};var o=s.iterator||"@@iterator";var u=s.asyncIterator||"@@asyncIterator";var l=s.toStringTag||"@@toStringTag";var c=(false?a:t(e))==="object";var f=r.regeneratorRuntime;if(f){if(c){e.exports=f}return}f=r.regeneratorRuntime=c?e.exports:{};function h(e,t,r,n){var i=t&&t.prototype instanceof b?t:b;var a=Object.create(i.prototype);var s=new I(n||[]);a._invoke=R(e,r,s);return a}f.wrap=h;function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}var v="suspendedStart";var p="suspendedYield";var m="executing";var g="completed";var y={};function b(){}function _(){}function S(){}var A={};A[o]=function(){return this};var w=Object.getPrototypeOf;var x=w&&w(w(F([])));if(x&&x!==n&&i.call(x,o)){A=x}var k=S.prototype=b.prototype=Object.create(A);_.prototype=k.constructor=S;S.constructor=_;S[l]=_.displayName="GeneratorFunction";function P(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}f.isGeneratorFunction=function(e){var t=typeof e==="function"&&e.constructor;return t?t===_||(t.displayName||t.name)==="GeneratorFunction":false};f.mark=function(e){if(Object.setPrototypeOf){Object.setPrototypeOf(e,S)}else{e.__proto__=S;if(!(l in e)){e[l]="GeneratorFunction"}}e.prototype=Object.create(k);return e};f.awrap=function(e){return{__await:e}};function C(e){function n(r,a,s,o){var u=d(e[r],e,a);if(u.type==="throw"){o(u.arg)}else{var l=u.arg;var c=l.value;if(c&&(typeof c==="undefined"?"undefined":t(c))==="object"&&i.call(c,"__await")){return Promise.resolve(c.__await).then(function(e){n("next",e,s,o)},function(e){n("throw",e,s,o)})}return Promise.resolve(c).then(function(e){l.value=e;s(l)},o)}}if(t(r.process)==="object"&&r.process.domain){n=r.process.domain.bind(n)}var a;function s(e,t){function r(){return new Promise(function(r,i){n(e,t,r,i)})}return a=a?a.then(r,r):r()}this._invoke=s}P(C.prototype);C.prototype[u]=function(){return this};f.AsyncIterator=C;f.async=function(e,t,r,n){var i=new C(h(e,t,r,n));return f.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})};function R(e,t,r){var n=v;return function i(a,s){if(n===m){throw new Error("Generator is already running")}if(n===g){if(a==="throw"){throw s}return L()}r.method=a;r.arg=s;while(true){var o=r.delegate;if(o){var u=E(o,r);if(u){if(u===y)continue;return u}}if(r.method==="next"){r.sent=r._sent=r.arg}else if(r.method==="throw"){if(n===v){n=g;throw r.arg}r.dispatchException(r.arg)}else if(r.method==="return"){r.abrupt("return",r.arg)}n=m;var l=d(e,t,r);if(l.type==="normal"){n=r.done?g:p;if(l.arg===y){continue}return{value:l.arg,done:r.done}}else if(l.type==="throw"){n=g;r.method="throw";r.arg=l.arg}}}}function E(e,t){var r=e.iterator[t.method];if(r===a){t.delegate=null;if(t.method==="throw"){if(e.iterator.return){t.method="return";t.arg=a;E(e,t);if(t.method==="throw"){return y}}t.method="throw";t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var n=d(r,e.iterator,t.arg);if(n.type==="throw"){t.method="throw";t.arg=n.arg;t.delegate=null;return y}var i=n.arg;if(!i){t.method="throw";t.arg=new TypeError("iterator result is not an object");t.delegate=null;return y}if(i.done){t[e.resultName]=i.value;t.next=e.nextLoc;if(t.method!=="return"){t.method="next";t.arg=a}}else{return i}t.delegate=null;return y}P(k);k[l]="Generator";k[o]=function(){return this};k.toString=function(){return"[object Generator]"};function T(e){var t={tryLoc:e[0]};if(1 in e){t.catchLoc=e[1]}if(2 in e){t.finallyLoc=e[2];t.afterLoc=e[3]}this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal";delete t.arg;e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}];e.forEach(T,this);this.reset(true)}f.keys=function(e){var t=[];for(var r in e){t.push(r)}t.reverse();return function r(){while(t.length){var n=t.pop();if(n in e){r.value=n;r.done=false;return r}}r.done=true;return r}};function F(e){if(e){var t=e[o];if(t){return t.call(e)}if(typeof e.next==="function"){return e}if(!isNaN(e.length)){var r=-1,n=function t(){while(++r<e.length){if(i.call(e,r)){t.value=e[r];t.done=false;return t}}t.value=a;t.done=true;return t};return n.next=n}}return{next:L}}f.values=F;function L(){return{value:a,done:true}}I.prototype={constructor:I,reset:function e(t){this.prev=0;this.next=0;this.sent=this._sent=a;this.done=false;this.delegate=null;this.method="next";this.arg=a;this.tryEntries.forEach(O);if(!t){for(var r in this){if(r.charAt(0)==="t"&&i.call(this,r)&&!isNaN(+r.slice(1))){this[r]=a}}}},stop:function e(){this.done=true;var t=this.tryEntries[0];var r=t.completion;if(r.type==="throw"){throw r.arg}return this.rval},dispatchException:function e(t){if(this.done){throw t}var r=this;function n(e,n){u.type="throw";u.arg=t;r.next=e;if(n){r.method="next";r.arg=a}return!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s];var u=o.completion;if(o.tryLoc==="root"){return n("end")}if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc");var c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc){return n(o.catchLoc,true)}else if(this.prev<o.finallyLoc){return n(o.finallyLoc)}}else if(l){if(this.prev<o.catchLoc){return n(o.catchLoc,true)}}else if(c){if(this.prev<o.finallyLoc){return n(o.finallyLoc)}}else{throw new Error("try statement without catch or finally")}}}},abrupt:function e(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}if(s&&(t==="break"||t==="continue")&&s.tryLoc<=r&&r<=s.finallyLoc){s=null}var o=s?s.completion:{};o.type=t;o.arg=r;if(s){this.method="next";this.next=s.finallyLoc;return y}return this.complete(o)},complete:function e(t,r){if(t.type==="throw"){throw t.arg}if(t.type==="break"||t.type==="continue"){this.next=t.arg}else if(t.type==="return"){this.rval=this.arg=t.arg;this.method="return";this.next="end"}else if(t.type==="normal"&&r){this.next=r}return y},finish:function e(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t){this.complete(n.completion,n.afterLoc);O(n);return y}}},catch:function e(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if(i.type==="throw"){var a=i.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function e(t,r,n){this.delegate={iterator:F(t),resultName:r,nextLoc:n};if(this.method==="next"){this.arg=a}return y}}}((typeof global==="undefined"?"undefined":t(global))==="object"?global:(typeof window==="undefined"?"undefined":t(window))==="object"?window:(typeof self==="undefined"?"undefined":t(self))==="object"?self:undefined)}).call(this,r(328)(e))},function(e,t,r){"use strict";e.exports=function(e){if(!e.webpackPolyfill){e.deprecate=function(){};e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function t(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function t(){return e.i}});e.webpackPolyfill=1}return e}},function(e,t,r){"use strict";r(330);e.exports=r(9).RegExp.escape},function(e,t,r){"use strict";var n=r(8);var i=r(331)(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function e(t){return i(t)}})},function(e,t,r){"use strict";e.exports=function(e,t){var r=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.unreachable=t.warn=t.utf8StringToString=t.stringToUTF8String=t.stringToPDFString=t.stringToBytes=t.string32=t.shadow=t.setVerbosityLevel=t.URL=t.ReadableStream=t.removeNullCharacters=t.readUint32=t.readUint16=t.readInt8=t.log2=t.isEvalSupported=t.isLittleEndian=t.createValidAbsoluteUrl=t.isSameOrigin=t.isSpace=t.isString=t.isNum=t.isEmptyObj=t.isBool=t.isArrayBuffer=t.info=t.getVerbosityLevel=t.getLookupTableFactory=t.getInheritableProperty=t.deprecated=t.createObjectURL=t.createPromiseCapability=t.bytesToString=t.assert=t.arraysToBytes=t.arrayByteLength=t.FormatError=t.XRefParseException=t.toRomanNumerals=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.MissingDataException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=undefined;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r(333);var i=r(348);var a=r(350);var s=[1,0,0,1,0,0];var o=[.001,0,0,.001,0,0];var u={NONE:"none",DECODE:"decode",DISPLAY:"display"};var l={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};var c={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};var f={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};var h={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};var d={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};var v={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};var p={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};var m={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9};var g={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10};var y={ERRORS:0,WARNINGS:1,INFOS:5};var b={NONE:0,BINARY:1,STREAM:2};var _={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};var S={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};var A={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var w=y.WARNINGS;function x(e){if(Number.isInteger(e)){w=e}}function k(){return w}function P(e){if(w>=y.INFOS){console.log("Info: "+e)}}function C(e){if(w>=y.WARNINGS){console.log("Warning: "+e)}}function R(e){console.log("Deprecated API usage: "+e)}function E(e){throw new Error(e)}function T(e,t){if(!e){E(t)}}function O(e,t){try{var r=new a.URL(e);if(!r.origin||r.origin==="null"){return false}}catch(e){return false}var n=new a.URL(t,r);return r.origin===n.origin}function I(e){if(!e){return false}switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return true;default:return false}}function F(e,t){if(!e){return null}try{var r=t?new a.URL(e,t):new a.URL(e);if(I(r)){return r}}catch(e){}return null}function L(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:false});return r}function M(e){var t;return function(){if(e){t=Object.create(null);e(t);e=null}return t}}var N=function e(){function t(e,t){this.name="PasswordException";this.message=e;this.code=t}t.prototype=new Error;t.constructor=t;return t}();var j=function e(){function t(e,t){this.name="UnknownErrorException";this.message=e;this.details=t}t.prototype=new Error;t.constructor=t;return t}();var D=function e(){function t(e){this.name="InvalidPDFException";this.message=e}t.prototype=new Error;t.constructor=t;return t}();var q=function e(){function t(e){this.name="MissingPDFException";this.message=e}t.prototype=new Error;t.constructor=t;return t}();var U=function e(){function t(e,t){this.name="UnexpectedResponseException";this.message=e;this.status=t}t.prototype=new Error;t.constructor=t;return t}();var W=function e(){function t(e,t){this.begin=e;this.end=t;this.message="Missing data ["+e+", "+t+")"}t.prototype=new Error;t.prototype.name="MissingDataException";t.constructor=t;return t}();var B=function e(){function t(e){this.message=e}t.prototype=new Error;t.prototype.name="XRefParseException";t.constructor=t;return t}();var G=function e(){function t(e){this.message=e}t.prototype=new Error;t.prototype.name="FormatError";t.constructor=t;return t}();var z=function e(){function t(e){this.name="AbortException";this.message=e}t.prototype=new Error;t.constructor=t;return t}();var H=/\x00/g;function X(e){if(typeof e!=="string"){C("The argument for removeNullCharacters must be a string.");return e}return e.replace(H,"")}function V(e){T(e!==null&&(typeof e==="undefined"?"undefined":n(e))==="object"&&e.length!==undefined,"Invalid argument for bytesToString");var t=e.length;var r=8192;if(t<r){return String.fromCharCode.apply(null,e)}var i=[];for(var a=0;a<t;a+=r){var s=Math.min(a+r,t);var o=e.subarray(a,s);i.push(String.fromCharCode.apply(null,o))}return i.join("")}function Y(e){T(typeof e==="string","Invalid argument for stringToBytes");var t=e.length;var r=new Uint8Array(t);for(var n=0;n<t;++n){r[n]=e.charCodeAt(n)&255}return r}function Q(e){if(e.length!==undefined){return e.length}T(e.byteLength!==undefined);return e.byteLength}function K(e){if(e.length===1&&e[0]instanceof Uint8Array){return e[0]}var t=0;var r,n=e.length;var i,a;for(r=0;r<n;r++){i=e[r];a=Q(i);t+=a}var s=0;var o=new Uint8Array(t);for(r=0;r<n;r++){i=e[r];if(!(i instanceof Uint8Array)){if(typeof i==="string"){i=Y(i)}else{i=new Uint8Array(i)}}a=i.byteLength;o.set(i,s);s+=a}return o}function J(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function Z(e){if(e<=0){return 0}return Math.ceil(Math.log2(e))}function $(e,t){return e[t]<<24>>24}function ee(e,t){return e[t]<<8|e[t+1]}function te(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function re(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return t[0]===1}function ne(){try{new Function("");return true}catch(e){return false}}function ie(e){var t=e.dict,r=e.key,n=e.getArray,i=n===undefined?false:n,a=e.stopWhenFound,s=a===undefined?true:a;var o=100;var u=0;var l=void 0;while(t){var c=i?t.getArray(r):t.get(r);if(c!==undefined){if(s){return c}if(!l){l=[]}l.push(c)}if(++u>o){C('getInheritableProperty: maximum loop count exceeded for "'+r+'"');break}t=t.get("Parent")}return l}var ae=function e(){function t(){}var r=["rgb(",0,",",0,",",0,")"];t.makeCssRgb=function e(t,n,i){r[1]=t;r[3]=n;r[5]=i;return r.join("")};t.transform=function e(t,r){return[t[0]*r[0]+t[2]*r[1],t[1]*r[0]+t[3]*r[1],t[0]*r[2]+t[2]*r[3],t[1]*r[2]+t[3]*r[3],t[0]*r[4]+t[2]*r[5]+t[4],t[1]*r[4]+t[3]*r[5]+t[5]]};t.applyTransform=function e(t,r){var n=t[0]*r[0]+t[1]*r[2]+r[4];var i=t[0]*r[1]+t[1]*r[3]+r[5];return[n,i]};t.applyInverseTransform=function e(t,r){var n=r[0]*r[3]-r[1]*r[2];var i=(t[0]*r[3]-t[1]*r[2]+r[2]*r[5]-r[4]*r[3])/n;var a=(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/n;return[i,a]};t.getAxialAlignedBoundingBox=function e(r,n){var i=t.applyTransform(r,n);var a=t.applyTransform(r.slice(2,4),n);var s=t.applyTransform([r[0],r[3]],n);var o=t.applyTransform([r[2],r[1]],n);return[Math.min(i[0],a[0],s[0],o[0]),Math.min(i[1],a[1],s[1],o[1]),Math.max(i[0],a[0],s[0],o[0]),Math.max(i[1],a[1],s[1],o[1])]};t.inverseTransform=function e(t){var r=t[0]*t[3]-t[1]*t[2];return[t[3]/r,-t[1]/r,-t[2]/r,t[0]/r,(t[2]*t[5]-t[4]*t[3])/r,(t[4]*t[1]-t[5]*t[0])/r]};t.apply3dTransform=function e(t,r){return[t[0]*r[0]+t[1]*r[1]+t[2]*r[2],t[3]*r[0]+t[4]*r[1]+t[5]*r[2],t[6]*r[0]+t[7]*r[1]+t[8]*r[2]]};t.singularValueDecompose2dScale=function e(t){var r=[t[0],t[2],t[1],t[3]];var n=t[0]*r[0]+t[1]*r[2];var i=t[0]*r[1]+t[1]*r[3];var a=t[2]*r[0]+t[3]*r[2];var s=t[2]*r[1]+t[3]*r[3];var o=(n+s)/2;var u=Math.sqrt((n+s)*(n+s)-4*(n*s-a*i))/2;var l=o+u||1;var c=o-u||1;return[Math.sqrt(l),Math.sqrt(c)]};t.normalizeRect=function e(t){var r=t.slice(0);if(t[0]>t[2]){r[0]=t[2];r[2]=t[0]}if(t[1]>t[3]){r[1]=t[3];r[3]=t[1]}return r};t.intersect=function e(r,n){function i(e,t){return e-t}var a=[r[0],r[2],n[0],n[2]].sort(i),s=[r[1],r[3],n[1],n[3]].sort(i),o=[];r=t.normalizeRect(r);n=t.normalizeRect(n);if(a[0]===r[0]&&a[1]===n[0]||a[0]===n[0]&&a[1]===r[0]){o[0]=a[1];o[2]=a[2]}else{return false}if(s[0]===r[1]&&s[1]===n[1]||s[0]===n[1]&&s[1]===r[1]){o[1]=s[1];o[3]=s[2]}else{return false}return o};return t}();var se=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function oe(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;T(Number.isInteger(e)&&e>0,"The number should be a positive integer.");var r=void 0,n=[];while(e>=1e3){e-=1e3;n.push("M")}r=e/100|0;e%=100;n.push(se[r]);r=e/10|0;e%=10;n.push(se[10+r]);n.push(se[20+e]);var i=n.join("");return t?i.toLowerCase():i}var ue=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function le(e){var t,r=e.length,n=[];if(e[0]==="þ"&&e[1]==="ÿ"){for(t=2;t<r;t+=2){n.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)))}}else{for(t=0;t<r;++t){var i=ue[e.charCodeAt(t)];n.push(i?String.fromCharCode(i):e.charAt(t))}}return n.join("")}function ce(e){return decodeURIComponent(escape(e))}function fe(e){return unescape(encodeURIComponent(e))}function he(e){for(var t in e){return false}return true}function de(e){return typeof e==="boolean"}function ve(e){return typeof e==="number"}function pe(e){return typeof e==="string"}function me(e){return(typeof e==="undefined"?"undefined":n(e))==="object"&&e!==null&&e.byteLength!==undefined}function ge(e){return e===32||e===9||e===13||e===10}function ye(){var e={};e.promise=new Promise(function(t,r){e.resolve=t;e.reject=r});return e}var be=function e(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function e(r,n){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(!i&&a.URL.createObjectURL){var s=new Blob([r],{type:n});return a.URL.createObjectURL(s)}var o="data:"+n+";base64,";for(var u=0,l=r.length;u<l;u+=3){var c=r[u]&255;var f=r[u+1]&255;var h=r[u+2]&255;var d=c>>2,v=(c&3)<<4|f>>4;var p=u+1<l?(f&15)<<2|h>>6:64;var m=u+2<l?h&63:64;o+=t[d]+t[v]+t[p]+t[m]}return o}}();t.FONT_IDENTITY_MATRIX=o;t.IDENTITY_MATRIX=s;t.OPS=_;t.VerbosityLevel=y;t.UNSUPPORTED_FEATURES=S;t.AnnotationBorderStyleType=p;t.AnnotationFieldFlag=v;t.AnnotationFlag=d;t.AnnotationType=h;t.FontType=g;t.ImageKind=f;t.CMapCompressionType=b;t.AbortException=z;t.InvalidPDFException=D;t.MissingDataException=W;t.MissingPDFException=q;t.NativeImageDecoding=u;t.PasswordException=N;t.PasswordResponses=A;t.PermissionFlag=l;t.StreamType=m;t.TextRenderingMode=c;t.UnexpectedResponseException=U;t.UnknownErrorException=j;t.Util=ae;t.toRomanNumerals=oe;t.XRefParseException=B;t.FormatError=G;t.arrayByteLength=Q;t.arraysToBytes=K;t.assert=T;t.bytesToString=V;t.createPromiseCapability=ye;t.createObjectURL=be;t.deprecated=R;t.getInheritableProperty=ie;t.getLookupTableFactory=M;t.getVerbosityLevel=k;t.info=P;t.isArrayBuffer=me;t.isBool=de;t.isEmptyObj=he;t.isNum=ve;t.isString=pe;t.isSpace=ge;t.isSameOrigin=O;t.createValidAbsoluteUrl=F;t.isLittleEndian=re;t.isEvalSupported=ne;t.log2=Z;t.readInt8=$;t.readUint16=ee;t.readUint32=te;t.removeNullCharacters=X;t.ReadableStream=i.ReadableStream;t.URL=a.URL;t.setVerbosityLevel=x;t.shadow=L;t.string32=J;t.stringToBytes=Y;t.stringToPDFString=le;t.stringToUTF8String=ce;t.utf8StringToString=fe;t.warn=C;t.unreachable=E},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=r(334);if(!i._pdfjsCompatibilityChecked){i._pdfjsCompatibilityChecked=true;var a=r(335);var s=(typeof window==="undefined"?"undefined":n(window))==="object"&&(typeof document==="undefined"?"undefined":n(document))==="object";(function e(){if(i.btoa||!a()){return}i.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}})();(function e(){if(i.atob||!a()){return}i.atob=function(e){return Buffer.from(e,"base64").toString("binary")}})();(function e(){if(!s){return}if("currentScript"in document){return}Object.defineProperty(document,"currentScript",{get:function e(){var t=document.getElementsByTagName("script");return t[t.length-1]},enumerable:true,configurable:true})})();(function e(){if(!s){return}if(typeof Element.prototype.remove!=="undefined"){return}Element.prototype.remove=function(){if(this.parentNode){this.parentNode.removeChild(this)}}})();(function e(){if(!s||a()){return}var t=document.createElement("div");if(t.classList.toggle("test",0)===false){return}var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e){if(arguments.length>1){var t=!!arguments[1];return this[t?"add":"remove"](e),t}return r(e)}})();(function e(){if(String.prototype.includes){return}r(336)})();(function e(){if(Array.prototype.includes){return}r(337)})();(function e(){if(Object.assign){return}r(338)})();(function e(){if(Math.log2){return}Math.log2=r(339)})();(function e(){if(Number.isNaN){return}Number.isNaN=r(340)})();(function e(){if(Number.isInteger){return}Number.isInteger=r(341)})();(function e(){if(i.Promise){return}i.Promise=r(342)})();(function e(){if(i.WeakMap){return}i.WeakMap=r(343)})();(function e(){if(String.codePointAt){return}String.codePointAt=r(344)})();(function e(){if(String.fromCodePoint){return}String.fromCodePoint=r(345)})();(function e(){if(i.Symbol){return}r(346)})();(function e(){if(Object.values){return}Object.values=r(347)})()}},function(e,t,r){"use strict";e.exports=typeof window!=="undefined"&&window.Math===Math?window:typeof global!=="undefined"&&global.Math===Math?global:typeof self!=="undefined"&&self.Math===Math?self:{}},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function e(){return(typeof process==="undefined"?"undefined":n(process))==="object"&&process+""==="[object process]"}},function(e,t,r){"use strict";r(136);e.exports=r(9).String.includes},function(e,t,r){"use strict";r(258);e.exports=r(9).Array.includes},function(e,t,r){"use strict";r(67);e.exports=r(9).Object.assign},function(e,t,r){"use strict";r(118);e.exports=r(9).Math.log2},function(e,t,r){"use strict";r(96);e.exports=r(9).Number.isNaN},function(e,t,r){"use strict";r(94);e.exports=r(9).Number.isInteger},function(e,t,r){"use strict";r(73);r(126);r(326);r(210);r(310);r(311);e.exports=r(9).Promise},function(e,t,r){"use strict";r(73);r(326);r(225);r(287);r(292);e.exports=r(9).WeakMap},function(e,t,r){"use strict";r(131);e.exports=r(9).String.codePointAt},function(e,t,r){"use strict";r(123);e.exports=r(9).String.fromCodePoint},function(e,t,r){"use strict";r(3);r(73);e.exports=r(9).Symbol},function(e,t,r){"use strict";r(272);e.exports=r(9).Object.values},function(e,t,r){"use strict";var n=false;if(typeof ReadableStream!=="undefined"){try{new ReadableStream({start:function e(t){t.close()}});n=true}catch(e){}}if(n){t.ReadableStream=ReadableStream}else{t.ReadableStream=r(349).ReadableStream}},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};(function(e,t){for(var r in t){e[r]=t[r]}})(t,function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:false,exports:{}};e[n].call(i.exports,i,i.exports,r);i.l=true;return i.exports}r.m=e;r.c=t;r.i=function(e){return e};r.d=function(e,t,n){if(!r.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:n})}};r.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};r.d(t,"a",t);return t};r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};r.p="";return r(r.s=7)}([function(e,t,r){"use strict";var i=typeof Symbol==="function"&&n(Symbol.iterator)==="symbol"?function(e){return typeof e==="undefined"?"undefined":n(e)}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e==="undefined"?"undefined":n(e)};var a=r(1),s=a.assert;function o(e){return typeof e==="string"||(typeof e==="undefined"?"undefined":i(e))==="symbol"}t.typeIsObject=function(e){return(typeof e==="undefined"?"undefined":i(e))==="object"&&e!==null||typeof e==="function"};t.createDataProperty=function(e,r,n){s(t.typeIsObject(e));Object.defineProperty(e,r,{value:n,writable:true,enumerable:true,configurable:true})};t.createArrayFromList=function(e){return e.slice()};t.ArrayBufferCopy=function(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)};t.CreateIterResultObject=function(e,t){s(typeof t==="boolean");var r={};Object.defineProperty(r,"value",{value:e,enumerable:true,writable:true,configurable:true});Object.defineProperty(r,"done",{value:t,enumerable:true,writable:true,configurable:true});return r};t.IsFiniteNonNegativeNumber=function(e){if(Number.isNaN(e)){return false}if(e===Infinity){return false}if(e<0){return false}return true};function u(e,t,r){if(typeof e!=="function"){throw new TypeError("Argument is not a function")}return Function.prototype.apply.call(e,t,r)}t.InvokeOrNoop=function(e,t,r){s(e!==undefined);s(o(t));s(Array.isArray(r));var n=e[t];if(n===undefined){return undefined}return u(n,e,r)};t.PromiseInvokeOrNoop=function(e,r,n){s(e!==undefined);s(o(r));s(Array.isArray(n));try{return Promise.resolve(t.InvokeOrNoop(e,r,n))}catch(e){return Promise.reject(e)}};t.PromiseInvokeOrPerformFallback=function(e,t,r,n,i){s(e!==undefined);s(o(t));s(Array.isArray(r));s(Array.isArray(i));var a=void 0;try{a=e[t]}catch(e){return Promise.reject(e)}if(a===undefined){return n.apply(null,i)}try{return Promise.resolve(u(a,e,r))}catch(e){return Promise.reject(e)}};t.TransferArrayBuffer=function(e){return e.slice()};t.ValidateAndNormalizeHighWaterMark=function(e){e=Number(e);if(Number.isNaN(e)||e<0){throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN")}return e};t.ValidateAndNormalizeQueuingStrategy=function(e,r){if(e!==undefined&&typeof e!=="function"){throw new TypeError("size property of a queuing strategy must be a function")}r=t.ValidateAndNormalizeHighWaterMark(r);return{size:e,highWaterMark:r}}},function(e,t,r){"use strict";function n(e){if(e&&e.constructor===i){setTimeout(function(){throw e},0)}}function i(e){this.name="AssertionError";this.message=e||"";this.stack=(new Error).stack}i.prototype=Object.create(Error.prototype);i.prototype.constructor=i;function a(e,t){if(!e){throw new i(t)}}e.exports={rethrowAssertionErrorRejection:n,AssertionError:i,assert:a}},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var a=r(0),s=a.InvokeOrNoop,o=a.PromiseInvokeOrNoop,u=a.ValidateAndNormalizeQueuingStrategy,l=a.typeIsObject;var c=r(1),f=c.assert,h=c.rethrowAssertionErrorRejection;var d=r(3),v=d.DequeueValue,p=d.EnqueueValueWithSize,m=d.PeekQueueValue,g=d.ResetQueue;var y=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=r.size,a=r.highWaterMark,s=a===undefined?1:a;i(this,e);this._state="writable";this._storedError=undefined;this._writer=undefined;this._writableStreamController=undefined;this._writeRequests=[];this._inFlightWriteRequest=undefined;this._closeRequest=undefined;this._inFlightCloseRequest=undefined;this._pendingAbortRequest=undefined;this._backpressure=false;var o=t.type;if(o!==undefined){throw new RangeError("Invalid type is specified")}this._writableStreamController=new V(this,t,n,s);this._writableStreamController.__startSteps()}n(e,[{key:"abort",value:function e(t){if(_(this)===false){return Promise.reject(ae("abort"))}if(S(this)===true){return Promise.reject(new TypeError("Cannot abort a stream that already has a writer"))}return A(this,t)}},{key:"getWriter",value:function e(){if(_(this)===false){throw ae("getWriter")}return b(this)}},{key:"locked",get:function e(){if(_(this)===false){throw ae("locked")}return S(this)}}]);return e}();e.exports={AcquireWritableStreamDefaultWriter:b,IsWritableStream:_,IsWritableStreamLocked:S,WritableStream:y,WritableStreamAbort:A,WritableStreamDefaultControllerError:ie,WritableStreamDefaultWriterCloseWithErrorPropagation:W,WritableStreamDefaultWriterRelease:H,WritableStreamDefaultWriterWrite:X,WritableStreamCloseQueuedOrInFlight:O};function b(e){return new j(e)}function _(e){if(!l(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")){return false}return true}function S(e){f(_(e)===true,"IsWritableStreamLocked should only be used on known writable streams");if(e._writer===undefined){return false}return true}function A(e,t){var r=e._state;if(r==="closed"){return Promise.resolve(undefined)}if(r==="errored"){return Promise.reject(e._storedError)}var n=new TypeError("Requested to abort");if(e._pendingAbortRequest!==undefined){return Promise.reject(n)}f(r==="writable"||r==="erroring","state must be writable or erroring");var i=false;if(r==="erroring"){i=true;t=undefined}var a=new Promise(function(r,n){e._pendingAbortRequest={_resolve:r,_reject:n,_reason:t,_wasAlreadyErroring:i}});if(i===false){k(e,n)}return a}function w(e){f(S(e)===true);f(e._state==="writable");var t=new Promise(function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)});return t}function x(e,t){var r=e._state;if(r==="writable"){k(e,t);return}f(r==="erroring");P(e)}function k(e,t){f(e._storedError===undefined,"stream._storedError === undefined");f(e._state==="writable","state must be writable");var r=e._writableStreamController;f(r!==undefined,"controller must not be undefined");e._state="erroring";e._storedError=t;var n=e._writer;if(n!==undefined){G(n,t)}if(I(e)===false&&r._started===true){P(e)}}function P(e){f(e._state==="erroring","stream._state === erroring");f(I(e)===false,"WritableStreamHasOperationMarkedInFlight(stream) === false");e._state="errored";e._writableStreamController.__errorSteps();var t=e._storedError;for(var r=0;r<e._writeRequests.length;r++){var n=e._writeRequests[r];n._reject(t)}e._writeRequests=[];if(e._pendingAbortRequest===undefined){M(e);return}var i=e._pendingAbortRequest;e._pendingAbortRequest=undefined;if(i._wasAlreadyErroring===true){i._reject(t);M(e);return}var a=e._writableStreamController.__abortSteps(i._reason);a.then(function(){i._resolve();M(e)},function(t){i._reject(t);M(e)})}function C(e){f(e._inFlightWriteRequest!==undefined);e._inFlightWriteRequest._resolve(undefined);e._inFlightWriteRequest=undefined}function R(e,t){f(e._inFlightWriteRequest!==undefined);e._inFlightWriteRequest._reject(t);e._inFlightWriteRequest=undefined;f(e._state==="writable"||e._state==="erroring");x(e,t)}function E(e){f(e._inFlightCloseRequest!==undefined);e._inFlightCloseRequest._resolve(undefined);e._inFlightCloseRequest=undefined;var t=e._state;f(t==="writable"||t==="erroring");if(t==="erroring"){e._storedError=undefined;if(e._pendingAbortRequest!==undefined){e._pendingAbortRequest._resolve();e._pendingAbortRequest=undefined}}e._state="closed";var r=e._writer;if(r!==undefined){de(r)}f(e._pendingAbortRequest===undefined,"stream._pendingAbortRequest === undefined");f(e._storedError===undefined,"stream._storedError === undefined")}function T(e,t){f(e._inFlightCloseRequest!==undefined);e._inFlightCloseRequest._reject(t);e._inFlightCloseRequest=undefined;f(e._state==="writable"||e._state==="erroring");if(e._pendingAbortRequest!==undefined){e._pendingAbortRequest._reject(t);e._pendingAbortRequest=undefined}x(e,t)}function O(e){if(e._closeRequest===undefined&&e._inFlightCloseRequest===undefined){return false}return true}function I(e){if(e._inFlightWriteRequest===undefined&&e._inFlightCloseRequest===undefined){return false}return true}function F(e){f(e._inFlightCloseRequest===undefined);f(e._closeRequest!==undefined);e._inFlightCloseRequest=e._closeRequest;e._closeRequest=undefined}function L(e){f(e._inFlightWriteRequest===undefined,"there must be no pending write request");f(e._writeRequests.length!==0,"writeRequests must not be empty");e._inFlightWriteRequest=e._writeRequests.shift()}function M(e){f(e._state==="errored",'_stream_.[[state]] is `"errored"`');if(e._closeRequest!==undefined){f(e._inFlightCloseRequest===undefined);e._closeRequest._reject(e._storedError);e._closeRequest=undefined}var t=e._writer;if(t!==undefined){fe(t,e._storedError);t._closedPromise.catch(function(){})}}function N(e,t){f(e._state==="writable");f(O(e)===false);var r=e._writer;if(r!==undefined&&t!==e._backpressure){if(t===true){ye(r)}else{f(t===false);_e(r)}}e._backpressure=t}var j=function(){function e(t){i(this,e);if(_(t)===false){throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance")}if(S(t)===true){throw new TypeError("This stream has already been locked for exclusive writing by another writer")}this._ownerWritableStream=t;t._writer=this;var r=t._state;if(r==="writable"){if(O(t)===false&&t._backpressure===true){ve(this)}else{me(this)}ue(this)}else if(r==="erroring"){pe(this,t._storedError);this._readyPromise.catch(function(){});ue(this)}else if(r==="closed"){me(this);ce(this)}else{f(r==="errored","state must be errored");var n=t._storedError;pe(this,n);this._readyPromise.catch(function(){});le(this,n);this._closedPromise.catch(function(){})}}n(e,[{key:"abort",value:function e(t){if(D(this)===false){return Promise.reject(se("abort"))}if(this._ownerWritableStream===undefined){return Promise.reject(oe("abort"))}return q(this,t)}},{key:"close",value:function e(){if(D(this)===false){return Promise.reject(se("close"))}var t=this._ownerWritableStream;if(t===undefined){return Promise.reject(oe("close"))}if(O(t)===true){return Promise.reject(new TypeError("cannot close an already-closing stream"))}return U(this)}},{key:"releaseLock",value:function e(){if(D(this)===false){throw se("releaseLock")}var t=this._ownerWritableStream;if(t===undefined){return}f(t._writer!==undefined);H(this)}},{key:"write",value:function e(t){if(D(this)===false){return Promise.reject(se("write"))}if(this._ownerWritableStream===undefined){return Promise.reject(oe("write to"))}return X(this,t)}},{key:"closed",get:function e(){if(D(this)===false){return Promise.reject(se("closed"))}return this._closedPromise}},{key:"desiredSize",get:function e(){if(D(this)===false){throw se("desiredSize")}if(this._ownerWritableStream===undefined){throw oe("desiredSize")}return z(this)}},{key:"ready",get:function e(){if(D(this)===false){return Promise.reject(se("ready"))}return this._readyPromise}}]);return e}();function D(e){if(!l(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")){return false}return true}function q(e,t){var r=e._ownerWritableStream;f(r!==undefined);return A(r,t)}function U(e){var t=e._ownerWritableStream;f(t!==undefined);var r=t._state;if(r==="closed"||r==="errored"){return Promise.reject(new TypeError("The stream (in "+r+" state) is not in the writable state and cannot be closed"))}f(r==="writable"||r==="erroring");f(O(t)===false);var n=new Promise(function(e,r){var n={_resolve:e,_reject:r};t._closeRequest=n});if(t._backpressure===true&&r==="writable"){_e(e)}Y(t._writableStreamController);return n}function W(e){var t=e._ownerWritableStream;f(t!==undefined);var r=t._state;if(O(t)===true||r==="closed"){return Promise.resolve()}if(r==="errored"){return Promise.reject(t._storedError)}f(r==="writable"||r==="erroring");return U(e)}function B(e,t){if(e._closedPromiseState==="pending"){fe(e,t)}else{he(e,t)}e._closedPromise.catch(function(){})}function G(e,t){if(e._readyPromiseState==="pending"){ge(e,t)}else{be(e,t)}e._readyPromise.catch(function(){})}function z(e){var t=e._ownerWritableStream;var r=t._state;if(r==="errored"||r==="erroring"){return null}if(r==="closed"){return 0}return K(t._writableStreamController)}function H(e){var t=e._ownerWritableStream;f(t!==undefined);f(t._writer===e);var r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");G(e,r);B(e,r);t._writer=undefined;e._ownerWritableStream=undefined}function X(e,t){var r=e._ownerWritableStream;f(r!==undefined);var n=r._writableStreamController;var i=Q(n,t);if(r!==e._ownerWritableStream){return Promise.reject(oe("write to"))}var a=r._state;if(a==="errored"){return Promise.reject(r._storedError)}if(O(r)===true||a==="closed"){return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"))}if(a==="erroring"){return Promise.reject(r._storedError)}f(a==="writable");var s=w(r);J(n,t,i);return s}var V=function(){function e(t,r,n,a){i(this,e);if(_(t)===false){throw new TypeError("WritableStreamDefaultController can only be constructed with a WritableStream instance")}if(t._writableStreamController!==undefined){throw new TypeError("WritableStreamDefaultController instances can only be created by the WritableStream constructor")}this._controlledWritableStream=t;this._underlyingSink=r;this._queue=undefined;this._queueTotalSize=undefined;g(this);this._started=false;var s=u(n,a);this._strategySize=s.size;this._strategyHWM=s.highWaterMark;var o=ne(this);N(t,o)}n(e,[{key:"error",value:function e(t){if(Z(this)===false){throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController")}var r=this._controlledWritableStream._state;if(r!=="writable"){return}ie(this,t)}},{key:"__abortSteps",value:function e(t){return o(this._underlyingSink,"abort",[t])}},{key:"__errorSteps",value:function e(){g(this)}},{key:"__startSteps",value:function e(){var t=this;var r=s(this._underlyingSink,"start",[this]);var n=this._controlledWritableStream;Promise.resolve(r).then(function(){f(n._state==="writable"||n._state==="erroring");t._started=true;$(t)},function(e){f(n._state==="writable"||n._state==="erroring");t._started=true;x(n,e)}).catch(h)}}]);return e}();function Y(e){p(e,"close",0);$(e)}function Q(e,t){var r=e._strategySize;if(r===undefined){return 1}try{return r(t)}catch(t){ee(e,t);return 1}}function K(e){return e._strategyHWM-e._queueTotalSize}function J(e,t,r){var n={chunk:t};try{p(e,n,r)}catch(t){ee(e,t);return}var i=e._controlledWritableStream;if(O(i)===false&&i._state==="writable"){var a=ne(e);N(i,a)}$(e)}function Z(e){if(!l(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_underlyingSink")){return false}return true}function $(e){var t=e._controlledWritableStream;if(e._started===false){return}if(t._inFlightWriteRequest!==undefined){return}var r=t._state;if(r==="closed"||r==="errored"){return}if(r==="erroring"){P(t);return}if(e._queue.length===0){return}var n=m(e);if(n==="close"){te(e)}else{re(e,n.chunk)}}function ee(e,t){if(e._controlledWritableStream._state==="writable"){ie(e,t)}}function te(e){var t=e._controlledWritableStream;F(t);v(e);f(e._queue.length===0,"queue must be empty once the final write record is dequeued");var r=o(e._underlyingSink,"close",[]);r.then(function(){E(t)},function(e){T(t,e)}).catch(h)}function re(e,t){var r=e._controlledWritableStream;L(r);var n=o(e._underlyingSink,"write",[t,e]);n.then(function(){C(r);var t=r._state;f(t==="writable"||t==="erroring");v(e);if(O(r)===false&&t==="writable"){var n=ne(e);N(r,n)}$(e)},function(e){R(r,e)}).catch(h)}function ne(e){var t=K(e);return t<=0}function ie(e,t){var r=e._controlledWritableStream;f(r._state==="writable");k(r,t)}function ae(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function se(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function oe(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function ue(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t;e._closedPromise_reject=r;e._closedPromiseState="pending"})}function le(e,t){e._closedPromise=Promise.reject(t);e._closedPromise_resolve=undefined;e._closedPromise_reject=undefined;e._closedPromiseState="rejected"}function ce(e){e._closedPromise=Promise.resolve(undefined);e._closedPromise_resolve=undefined;e._closedPromise_reject=undefined;e._closedPromiseState="resolved"}function fe(e,t){f(e._closedPromise_resolve!==undefined,"writer._closedPromise_resolve !== undefined");f(e._closedPromise_reject!==undefined,"writer._closedPromise_reject !== undefined");f(e._closedPromiseState==="pending","writer._closedPromiseState is pending");e._closedPromise_reject(t);e._closedPromise_resolve=undefined;e._closedPromise_reject=undefined;e._closedPromiseState="rejected"}function he(e,t){f(e._closedPromise_resolve===undefined,"writer._closedPromise_resolve === undefined");f(e._closedPromise_reject===undefined,"writer._closedPromise_reject === undefined");f(e._closedPromiseState!=="pending","writer._closedPromiseState is not pending");e._closedPromise=Promise.reject(t);e._closedPromiseState="rejected"}function de(e){f(e._closedPromise_resolve!==undefined,"writer._closedPromise_resolve !== undefined");f(e._closedPromise_reject!==undefined,"writer._closedPromise_reject !== undefined");f(e._closedPromiseState==="pending","writer._closedPromiseState is pending");e._closedPromise_resolve(undefined);e._closedPromise_resolve=undefined;e._closedPromise_reject=undefined;e._closedPromiseState="resolved"}function ve(e){e._readyPromise=new Promise(function(t,r){e._readyPromise_resolve=t;e._readyPromise_reject=r});e._readyPromiseState="pending"}function pe(e,t){e._readyPromise=Promise.reject(t);e._readyPromise_resolve=undefined;e._readyPromise_reject=undefined;e._readyPromiseState="rejected"}function me(e){e._readyPromise=Promise.resolve(undefined);e._readyPromise_resolve=undefined;e._readyPromise_reject=undefined;e._readyPromiseState="fulfilled"}function ge(e,t){f(e._readyPromise_resolve!==undefined,"writer._readyPromise_resolve !== undefined");f(e._readyPromise_reject!==undefined,"writer._readyPromise_reject !== undefined");e._readyPromise_reject(t);e._readyPromise_resolve=undefined;e._readyPromise_reject=undefined;e._readyPromiseState="rejected"}function ye(e){f(e._readyPromise_resolve===undefined,"writer._readyPromise_resolve === undefined");f(e._readyPromise_reject===undefined,"writer._readyPromise_reject === undefined");e._readyPromise=new Promise(function(t,r){e._readyPromise_resolve=t;e._readyPromise_reject=r});e._readyPromiseState="pending"}function be(e,t){f(e._readyPromise_resolve===undefined,"writer._readyPromise_resolve === undefined");f(e._readyPromise_reject===undefined,"writer._readyPromise_reject === undefined");e._readyPromise=Promise.reject(t);e._readyPromiseState="rejected"}function _e(e){f(e._readyPromise_resolve!==undefined,"writer._readyPromise_resolve !== undefined");f(e._readyPromise_reject!==undefined,"writer._readyPromise_reject !== undefined");e._readyPromise_resolve(undefined);e._readyPromise_resolve=undefined;e._readyPromise_reject=undefined;e._readyPromiseState="fulfilled"}},function(e,t,r){"use strict";var n=r(0),i=n.IsFiniteNonNegativeNumber;var a=r(1),s=a.assert;t.DequeueValue=function(e){s("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: DequeueValue should only be used on containers with [[queue]] and [[queueTotalSize]].");s(e._queue.length>0,"Spec-level failure: should never dequeue from an empty queue.");var t=e._queue.shift();e._queueTotalSize-=t.size;if(e._queueTotalSize<0){e._queueTotalSize=0}return t.value};t.EnqueueValueWithSize=function(e,t,r){s("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: EnqueueValueWithSize should only be used on containers with [[queue]] and "+"[[queueTotalSize]].");r=Number(r);if(!i(r)){throw new RangeError("Size must be a finite, non-NaN, non-negative number.")}e._queue.push({value:t,size:r});e._queueTotalSize+=r};t.PeekQueueValue=function(e){s("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: PeekQueueValue should only be used on containers with [[queue]] and [[queueTotalSize]].");s(e._queue.length>0,"Spec-level failure: should never peek at an empty queue.");var t=e._queue[0];return t.value};t.ResetQueue=function(e){s("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: ResetQueue should only be used on containers with [[queue]] and [[queueTotalSize]].");e._queue=[];e._queueTotalSize=0}},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var a=r(0),s=a.ArrayBufferCopy,o=a.CreateIterResultObject,u=a.IsFiniteNonNegativeNumber,l=a.InvokeOrNoop,c=a.PromiseInvokeOrNoop,f=a.TransferArrayBuffer,h=a.ValidateAndNormalizeQueuingStrategy,d=a.ValidateAndNormalizeHighWaterMark;var v=r(0),p=v.createArrayFromList,m=v.createDataProperty,g=v.typeIsObject;var y=r(1),b=y.assert,_=y.rethrowAssertionErrorRejection;var S=r(3),A=S.DequeueValue,w=S.EnqueueValueWithSize,x=S.ResetQueue;var k=r(2),P=k.AcquireWritableStreamDefaultWriter,C=k.IsWritableStream,R=k.IsWritableStreamLocked,E=k.WritableStreamAbort,T=k.WritableStreamDefaultWriterCloseWithErrorPropagation,O=k.WritableStreamDefaultWriterRelease,I=k.WritableStreamDefaultWriterWrite,F=k.WritableStreamCloseQueuedOrInFlight;var L=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=r.size,a=r.highWaterMark;i(this,e);this._state="readable";this._reader=undefined;this._storedError=undefined;this._disturbed=false;this._readableStreamController=undefined;var s=t.type;var o=String(s);if(o==="bytes"){if(a===undefined){a=0}this._readableStreamController=new _e(this,t,a)}else if(s===undefined){if(a===undefined){a=1}this._readableStreamController=new ce(this,t,n,a)}else{throw new RangeError("Invalid type is specified")}}n(e,[{key:"cancel",value:function e(t){if(j(this)===false){return Promise.reject(He("cancel"))}if(q(this)===true){return Promise.reject(new TypeError("Cannot cancel a stream that already has a reader"))}return X(this,t)}},{key:"getReader",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=t.mode;if(j(this)===false){throw He("getReader")}if(r===undefined){return N(this)}r=String(r);if(r==="byob"){return M(this)}throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function e(t,r){var n=t.writable,i=t.readable;var a=this.pipeTo(n,r);it(a);return i}},{key:"pipeTo",value:function e(t){var r=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=n.preventClose,a=n.preventAbort,s=n.preventCancel;if(j(this)===false){return Promise.reject(He("pipeTo"))}if(C(t)===false){return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"))}i=Boolean(i);a=Boolean(a);s=Boolean(s);if(q(this)===true){return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"))}if(R(t)===true){return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"))}var o=N(this);var u=P(t);var l=false;var c=Promise.resolve();return new Promise(function(e,n){function f(){c=Promise.resolve();if(l===true){return Promise.resolve()}return u._readyPromise.then(function(){return le(o).then(function(e){var t=e.value,r=e.done;if(r===true){return}c=I(u,t).catch(function(){})})}).then(f)}v(r,o._closedPromise,function(e){if(a===false){m(function(){return E(t,e)},true,e)}else{g(true,e)}});v(t,u._closedPromise,function(e){if(s===false){m(function(){return X(r,e)},true,e)}else{g(true,e)}});p(r,o._closedPromise,function(){if(i===false){m(function(){return T(u)})}else{g()}});if(F(t)===true||t._state==="closed"){var h=new TypeError("the destination writable stream closed before all data could be piped to it");if(s===false){m(function(){return X(r,h)},true,h)}else{g(true,h)}}f().catch(function(e){c=Promise.resolve();_(e)});function d(){var e=c;return c.then(function(){return e!==c?d():undefined})}function v(e,t,r){if(e._state==="errored"){r(e._storedError)}else{t.catch(r).catch(_)}}function p(e,t,r){if(e._state==="closed"){r()}else{t.then(r).catch(_)}}function m(e,r,n){if(l===true){return}l=true;if(t._state==="writable"&&F(t)===false){d().then(i)}else{i()}function i(){e().then(function(){return y(r,n)},function(e){return y(true,e)}).catch(_)}}function g(e,r){if(l===true){return}l=true;if(t._state==="writable"&&F(t)===false){d().then(function(){return y(e,r)}).catch(_)}else{y(e,r)}}function y(t,r){O(u);oe(o);if(t){n(r)}else{e(undefined)}}})}},{key:"tee",value:function e(){if(j(this)===false){throw He("tee")}var t=U(this,false);return p(t)}},{key:"locked",get:function e(){if(j(this)===false){throw He("locked")}return q(this)}}]);return e}();e.exports={ReadableStream:L,IsReadableStreamDisturbed:D,ReadableStreamDefaultControllerClose:ve,ReadableStreamDefaultControllerEnqueue:pe,ReadableStreamDefaultControllerError:me,ReadableStreamDefaultControllerGetDesiredSize:ye};function M(e){return new re(e)}function N(e){return new te(e)}function j(e){if(!g(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")){return false}return true}function D(e){b(j(e)===true,"IsReadableStreamDisturbed should only be used on known readable streams");return e._disturbed}function q(e){b(j(e)===true,"IsReadableStreamLocked should only be used on known readable streams");if(e._reader===undefined){return false}return true}function U(e,t){b(j(e)===true);b(typeof t==="boolean");var r=N(e);var n={closedOrErrored:false,canceled1:false,canceled2:false,reason1:undefined,reason2:undefined};n.promise=new Promise(function(e){n._resolve=e});var i=W();i._reader=r;i._teeState=n;i._cloneForBranch2=t;var a=B();a._stream=e;a._teeState=n;var s=G();s._stream=e;s._teeState=n;var o=Object.create(Object.prototype);m(o,"pull",i);m(o,"cancel",a);var u=new L(o);var l=Object.create(Object.prototype);m(l,"pull",i);m(l,"cancel",s);var c=new L(l);i._branch1=u._readableStreamController;i._branch2=c._readableStreamController;r._closedPromise.catch(function(e){if(n.closedOrErrored===true){return}me(i._branch1,e);me(i._branch2,e);n.closedOrErrored=true});return[u,c]}function W(){function e(){var t=e._reader,r=e._branch1,n=e._branch2,i=e._teeState;return le(t).then(function(e){b(g(e));var t=e.value;var a=e.done;b(typeof a==="boolean");if(a===true&&i.closedOrErrored===false){if(i.canceled1===false){ve(r)}if(i.canceled2===false){ve(n)}i.closedOrErrored=true}if(i.closedOrErrored===true){return}var s=t;var o=t;if(i.canceled1===false){pe(r,s)}if(i.canceled2===false){pe(n,o)}})}return e}function B(){function e(t){var r=e._stream,n=e._teeState;n.canceled1=true;n.reason1=t;if(n.canceled2===true){var i=p([n.reason1,n.reason2]);var a=X(r,i);n._resolve(a)}return n.promise}return e}function G(){function e(t){var r=e._stream,n=e._teeState;n.canceled2=true;n.reason2=t;if(n.canceled1===true){var i=p([n.reason1,n.reason2]);var a=X(r,i);n._resolve(a)}return n.promise}return e}function z(e){b(ne(e._reader)===true);b(e._state==="readable"||e._state==="closed");var t=new Promise(function(t,r){var n={_resolve:t,_reject:r};e._reader._readIntoRequests.push(n)});return t}function H(e){b(ie(e._reader)===true);b(e._state==="readable");var t=new Promise(function(t,r){var n={_resolve:t,_reject:r};e._reader._readRequests.push(n)});return t}function X(e,t){e._disturbed=true;if(e._state==="closed"){return Promise.resolve(undefined)}if(e._state==="errored"){return Promise.reject(e._storedError)}V(e);var r=e._readableStreamController.__cancelSteps(t);return r.then(function(){return undefined})}function V(e){b(e._state==="readable");e._state="closed";var t=e._reader;if(t===undefined){return undefined}if(ie(t)===true){for(var r=0;r<t._readRequests.length;r++){var n=t._readRequests[r]._resolve;n(o(undefined,true))}t._readRequests=[]}$e(t);return undefined}function Y(e,t){b(j(e)===true,"stream must be ReadableStream");b(e._state==="readable","state must be readable");e._state="errored";e._storedError=t;var r=e._reader;if(r===undefined){return undefined}if(ie(r)===true){for(var n=0;n<r._readRequests.length;n++){var i=r._readRequests[n];i._reject(t)}r._readRequests=[]}else{b(ne(r),"reader must be ReadableStreamBYOBReader");for(var a=0;a<r._readIntoRequests.length;a++){var s=r._readIntoRequests[a];s._reject(t)}r._readIntoRequests=[]}Je(r,t);r._closedPromise.catch(function(){})}function Q(e,t,r){var n=e._reader;b(n._readIntoRequests.length>0);var i=n._readIntoRequests.shift();i._resolve(o(t,r))}function K(e,t,r){var n=e._reader;b(n._readRequests.length>0);var i=n._readRequests.shift();i._resolve(o(t,r))}function J(e){return e._reader._readIntoRequests.length}function Z(e){return e._reader._readRequests.length}function $(e){var t=e._reader;if(t===undefined){return false}if(ne(t)===false){return false}return true}function ee(e){var t=e._reader;if(t===undefined){return false}if(ie(t)===false){return false}return true}var te=function(){function e(t){i(this,e);if(j(t)===false){throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance")}if(q(t)===true){throw new TypeError("This stream has already been locked for exclusive reading by another reader")}ae(this,t);this._readRequests=[]}n(e,[{key:"cancel",value:function e(t){if(ie(this)===false){return Promise.reject(Ve("cancel"))}if(this._ownerReadableStream===undefined){return Promise.reject(Xe("cancel"))}return se(this,t)}},{key:"read",value:function e(){if(ie(this)===false){return Promise.reject(Ve("read"))}if(this._ownerReadableStream===undefined){return Promise.reject(Xe("read from"))}return le(this)}},{key:"releaseLock",value:function e(){if(ie(this)===false){throw Ve("releaseLock")}if(this._ownerReadableStream===undefined){return}if(this._readRequests.length>0){throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled")}oe(this)}},{key:"closed",get:function e(){if(ie(this)===false){return Promise.reject(Ve("closed"))}return this._closedPromise}}]);return e}();var re=function(){function e(t){i(this,e);if(!j(t)){throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a "+"byte source")}if(Se(t._readableStreamController)===false){throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte "+"source")}if(q(t)){throw new TypeError("This stream has already been locked for exclusive reading by another reader")}ae(this,t);this._readIntoRequests=[]}n(e,[{key:"cancel",value:function e(t){if(!ne(this)){return Promise.reject(et("cancel"))}if(this._ownerReadableStream===undefined){return Promise.reject(Xe("cancel"))}return se(this,t)}},{key:"read",value:function e(t){if(!ne(this)){return Promise.reject(et("read"))}if(this._ownerReadableStream===undefined){return Promise.reject(Xe("read from"))}if(!ArrayBuffer.isView(t)){return Promise.reject(new TypeError("view must be an array buffer view"))}if(t.byteLength===0){return Promise.reject(new TypeError("view must have non-zero byteLength"))}return ue(this,t)}},{key:"releaseLock",value:function e(){if(!ne(this)){throw et("releaseLock")}if(this._ownerReadableStream===undefined){return}if(this._readIntoRequests.length>0){throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled")}oe(this)}},{key:"closed",get:function e(){if(!ne(this)){return Promise.reject(et("closed"))}return this._closedPromise}}]);return e}();function ne(e){if(!g(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")){return false}return true}function ie(e){if(!g(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_readRequests")){return false}return true}function ae(e,t){e._ownerReadableStream=t;t._reader=e;if(t._state==="readable"){Ye(e)}else if(t._state==="closed"){Ke(e)}else{b(t._state==="errored","state must be errored");Qe(e,t._storedError);e._closedPromise.catch(function(){})}}function se(e,t){var r=e._ownerReadableStream;b(r!==undefined);return X(r,t)}function oe(e){b(e._ownerReadableStream!==undefined);b(e._ownerReadableStream._reader===e);if(e._ownerReadableStream._state==="readable"){Je(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}else{Ze(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}e._closedPromise.catch(function(){});e._ownerReadableStream._reader=undefined;e._ownerReadableStream=undefined}function ue(e,t){var r=e._ownerReadableStream;b(r!==undefined);r._disturbed=true;if(r._state==="errored"){return Promise.reject(r._storedError)}return Fe(r._readableStreamController,t)}function le(e){var t=e._ownerReadableStream;b(t!==undefined);t._disturbed=true;if(t._state==="closed"){return Promise.resolve(o(undefined,true))}if(t._state==="errored"){return Promise.reject(t._storedError)}b(t._state==="readable");return t._readableStreamController.__pullSteps()}var ce=function(){function e(t,r,n,a){i(this,e);if(j(t)===false){throw new TypeError("ReadableStreamDefaultController can only be constructed with a ReadableStream instance")}if(t._readableStreamController!==undefined){throw new TypeError("ReadableStreamDefaultController instances can only be created by the ReadableStream constructor")}this._controlledReadableStream=t;this._underlyingSource=r;this._queue=undefined;this._queueTotalSize=undefined;x(this);this._started=false;this._closeRequested=false;this._pullAgain=false;this._pulling=false;var s=h(n,a);this._strategySize=s.size;this._strategyHWM=s.highWaterMark;var o=this;var u=l(r,"start",[this]);Promise.resolve(u).then(function(){o._started=true;b(o._pulling===false);b(o._pullAgain===false);he(o)},function(e){ge(o,e)}).catch(_)}n(e,[{key:"close",value:function e(){if(fe(this)===false){throw tt("close")}if(this._closeRequested===true){throw new TypeError("The stream has already been closed; do not close it again!")}var t=this._controlledReadableStream._state;if(t!=="readable"){throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed")}ve(this)}},{key:"enqueue",value:function e(t){if(fe(this)===false){throw tt("enqueue")}if(this._closeRequested===true){throw new TypeError("stream is closed or draining")}var r=this._controlledReadableStream._state;if(r!=="readable"){throw new TypeError("The stream (in "+r+" state) is not in the readable state and cannot be enqueued to")}return pe(this,t)}},{key:"error",value:function e(t){if(fe(this)===false){throw tt("error")}var r=this._controlledReadableStream;if(r._state!=="readable"){throw new TypeError("The stream is "+r._state+" and so cannot be errored")}me(this,t)}},{key:"__cancelSteps",value:function e(t){x(this);return c(this._underlyingSource,"cancel",[t])}},{key:"__pullSteps",value:function e(){var t=this._controlledReadableStream;if(this._queue.length>0){var r=A(this);if(this._closeRequested===true&&this._queue.length===0){V(t)}else{he(this)}return Promise.resolve(o(r,false))}var n=H(t);he(this);return n}},{key:"desiredSize",get:function e(){if(fe(this)===false){throw tt("desiredSize")}return ye(this)}}]);return e}();function fe(e){if(!g(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_underlyingSource")){return false}return true}function he(e){var t=de(e);if(t===false){return undefined}if(e._pulling===true){e._pullAgain=true;return undefined}b(e._pullAgain===false);e._pulling=true;var r=c(e._underlyingSource,"pull",[e]);r.then(function(){e._pulling=false;if(e._pullAgain===true){e._pullAgain=false;return he(e)}return undefined},function(t){ge(e,t)}).catch(_);return undefined}function de(e){var t=e._controlledReadableStream;if(t._state==="closed"||t._state==="errored"){return false}if(e._closeRequested===true){return false}if(e._started===false){return false}if(q(t)===true&&Z(t)>0){return true}var r=ye(e);if(r>0){return true}return false}function ve(e){var t=e._controlledReadableStream;b(e._closeRequested===false);b(t._state==="readable");e._closeRequested=true;if(e._queue.length===0){V(t)}}function pe(e,t){var r=e._controlledReadableStream;b(e._closeRequested===false);b(r._state==="readable");if(q(r)===true&&Z(r)>0){K(r,t,false)}else{var n=1;if(e._strategySize!==undefined){var i=e._strategySize;try{n=i(t)}catch(t){ge(e,t);throw t}}try{w(e,t,n)}catch(t){ge(e,t);throw t}}he(e);return undefined}function me(e,t){var r=e._controlledReadableStream;b(r._state==="readable");x(e);Y(r,t)}function ge(e,t){if(e._controlledReadableStream._state==="readable"){me(e,t)}}function ye(e){var t=e._controlledReadableStream;var r=t._state;if(r==="errored"){return null}if(r==="closed"){return 0}return e._strategyHWM-e._queueTotalSize}var be=function(){function e(t,r){i(this,e);this._associatedReadableByteStreamController=t;this._view=r}n(e,[{key:"respond",value:function e(t){if(Ae(this)===false){throw rt("respond")}if(this._associatedReadableByteStreamController===undefined){throw new TypeError("This BYOB request has been invalidated")}Ge(this._associatedReadableByteStreamController,t)}},{key:"respondWithNewView",value:function e(t){if(Ae(this)===false){throw rt("respond")}if(this._associatedReadableByteStreamController===undefined){throw new TypeError("This BYOB request has been invalidated")}if(!ArrayBuffer.isView(t)){throw new TypeError("You can only respond with array buffer views")}ze(this._associatedReadableByteStreamController,t)}},{key:"view",get:function e(){return this._view}}]);return e}();var _e=function(){function e(t,r,n){i(this,e);if(j(t)===false){throw new TypeError("ReadableByteStreamController can only be constructed with a ReadableStream instance given "+"a byte source")}if(t._readableStreamController!==undefined){throw new TypeError("ReadableByteStreamController instances can only be created by the ReadableStream constructor given a byte "+"source")}this._controlledReadableStream=t;this._underlyingByteSource=r;this._pullAgain=false;this._pulling=false;xe(this);this._queue=this._queueTotalSize=undefined;x(this);this._closeRequested=false;this._started=false;this._strategyHWM=d(n);var a=r.autoAllocateChunkSize;if(a!==undefined){if(Number.isInteger(a)===false||a<=0){throw new RangeError("autoAllocateChunkSize must be a positive integer")}}this._autoAllocateChunkSize=a;this._pendingPullIntos=[];var s=this;var o=l(r,"start",[this]);Promise.resolve(o).then(function(){s._started=true;b(s._pulling===false);b(s._pullAgain===false);we(s)},function(e){if(t._state==="readable"){We(s,e)}}).catch(_)}n(e,[{key:"close",value:function e(){if(Se(this)===false){throw nt("close")}if(this._closeRequested===true){throw new TypeError("The stream has already been closed; do not close it again!")}var t=this._controlledReadableStream._state;if(t!=="readable"){throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed")}qe(this)}},{key:"enqueue",value:function e(t){if(Se(this)===false){throw nt("enqueue")}if(this._closeRequested===true){throw new TypeError("stream is closed or draining")}var r=this._controlledReadableStream._state;if(r!=="readable"){throw new TypeError("The stream (in "+r+" state) is not in the readable state and cannot be enqueued to")}if(!ArrayBuffer.isView(t)){throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController")}Ue(this,t)}},{key:"error",value:function e(t){if(Se(this)===false){throw nt("error")}var r=this._controlledReadableStream;if(r._state!=="readable"){throw new TypeError("The stream is "+r._state+" and so cannot be errored")}We(this,t)}},{key:"__cancelSteps",value:function e(t){if(this._pendingPullIntos.length>0){var r=this._pendingPullIntos[0];r.bytesFilled=0}x(this);return c(this._underlyingByteSource,"cancel",[t])}},{key:"__pullSteps",value:function e(){var t=this._controlledReadableStream;b(ee(t)===true);if(this._queueTotalSize>0){b(Z(t)===0);var r=this._queue.shift();this._queueTotalSize-=r.byteLength;Te(this);var n=void 0;try{n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}catch(e){return Promise.reject(e)}return Promise.resolve(o(n,false))}var i=this._autoAllocateChunkSize;if(i!==undefined){var a=void 0;try{a=new ArrayBuffer(i)}catch(e){return Promise.reject(e)}var s={buffer:a,byteOffset:0,byteLength:i,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(s)}var u=H(t);we(this);return u}},{key:"byobRequest",get:function e(){if(Se(this)===false){throw nt("byobRequest")}if(this._byobRequest===undefined&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos[0];var r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled);this._byobRequest=new be(this,r)}return this._byobRequest}},{key:"desiredSize",get:function e(){if(Se(this)===false){throw nt("desiredSize")}return Be(this)}}]);return e}();function Se(e){if(!g(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_underlyingByteSource")){return false}return true}function Ae(e){if(!g(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")){return false}return true}function we(e){var t=De(e);if(t===false){return undefined}if(e._pulling===true){e._pullAgain=true;return undefined}b(e._pullAgain===false);e._pulling=true;var r=c(e._underlyingByteSource,"pull",[e]);r.then(function(){e._pulling=false;if(e._pullAgain===true){e._pullAgain=false;we(e)}},function(t){if(e._controlledReadableStream._state==="readable"){We(e,t)}}).catch(_);return undefined}function xe(e){Oe(e);e._pendingPullIntos=[]}function ke(e,t){b(e._state!=="errored","state must not be errored");var r=false;if(e._state==="closed"){b(t.bytesFilled===0);r=true}var n=Pe(t);if(t.readerType==="default"){K(e,n,r)}else{b(t.readerType==="byob");Q(e,n,r)}}function Pe(e){var t=e.bytesFilled;var r=e.elementSize;b(t<=e.byteLength);b(t%r===0);return new e.ctor(e.buffer,e.byteOffset,t/r)}function Ce(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n});e._queueTotalSize+=n}function Re(e,t){var r=t.elementSize;var n=t.bytesFilled-t.bytesFilled%r;var i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled);var a=t.bytesFilled+i;var o=a-a%r;var u=i;var l=false;if(o>n){u=o-t.bytesFilled;l=true}var c=e._queue;while(u>0){var f=c[0];var h=Math.min(u,f.byteLength);var d=t.byteOffset+t.bytesFilled;s(t.buffer,d,f.buffer,f.byteOffset,h);if(f.byteLength===h){c.shift()}else{f.byteOffset+=h;f.byteLength-=h}e._queueTotalSize-=h;Ee(e,h,t);u-=h}if(l===false){b(e._queueTotalSize===0,"queue must be empty");b(t.bytesFilled>0);b(t.bytesFilled<t.elementSize)}return l}function Ee(e,t,r){b(e._pendingPullIntos.length===0||e._pendingPullIntos[0]===r);Oe(e);r.bytesFilled+=t}function Te(e){b(e._controlledReadableStream._state==="readable");if(e._queueTotalSize===0&&e._closeRequested===true){V(e._controlledReadableStream)}else{we(e)}}function Oe(e){if(e._byobRequest===undefined){return}e._byobRequest._associatedReadableByteStreamController=undefined;e._byobRequest._view=undefined;e._byobRequest=undefined}function Ie(e){b(e._closeRequested===false);while(e._pendingPullIntos.length>0){if(e._queueTotalSize===0){return}var t=e._pendingPullIntos[0];if(Re(e,t)===true){je(e);ke(e._controlledReadableStream,t)}}}function Fe(e,t){var r=e._controlledReadableStream;var n=1;if(t.constructor!==DataView){n=t.constructor.BYTES_PER_ELEMENT}var i=t.constructor;var a={buffer:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0){a.buffer=f(a.buffer);e._pendingPullIntos.push(a);return z(r)}if(r._state==="closed"){var s=new t.constructor(a.buffer,a.byteOffset,0);return Promise.resolve(o(s,true))}if(e._queueTotalSize>0){if(Re(e,a)===true){var u=Pe(a);Te(e);return Promise.resolve(o(u,false))}if(e._closeRequested===true){var l=new TypeError("Insufficient bytes to fill elements in the given buffer");We(e,l);return Promise.reject(l)}}a.buffer=f(a.buffer);e._pendingPullIntos.push(a);var c=z(r);we(e);return c}function Le(e,t){t.buffer=f(t.buffer);b(t.bytesFilled===0,"bytesFilled must be 0");var r=e._controlledReadableStream;if($(r)===true){while(J(r)>0){var n=je(e);ke(r,n)}}}function Me(e,t,r){if(r.bytesFilled+t>r.byteLength){throw new RangeError("bytesWritten out of range")}Ee(e,t,r);if(r.bytesFilled<r.elementSize){return}je(e);var n=r.bytesFilled%r.elementSize;if(n>0){var i=r.byteOffset+r.bytesFilled;var a=r.buffer.slice(i-n,i);Ce(e,a,0,a.byteLength)}r.buffer=f(r.buffer);r.bytesFilled-=n;ke(e._controlledReadableStream,r);Ie(e)}function Ne(e,t){var r=e._pendingPullIntos[0];var n=e._controlledReadableStream;if(n._state==="closed"){if(t!==0){throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}Le(e,r)}else{b(n._state==="readable");Me(e,t,r)}}function je(e){var t=e._pendingPullIntos.shift();Oe(e);return t}function De(e){var t=e._controlledReadableStream;if(t._state!=="readable"){return false}if(e._closeRequested===true){return false}if(e._started===false){return false}if(ee(t)===true&&Z(t)>0){return true}if($(t)===true&&J(t)>0){return true}if(Be(e)>0){return true}return false}function qe(e){var t=e._controlledReadableStream;b(e._closeRequested===false);b(t._state==="readable");if(e._queueTotalSize>0){e._closeRequested=true;return}if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos[0];if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");We(e,n);throw n}}V(t)}function Ue(e,t){var r=e._controlledReadableStream;b(e._closeRequested===false);b(r._state==="readable");var n=t.buffer;var i=t.byteOffset;var a=t.byteLength;var s=f(n);if(ee(r)===true){if(Z(r)===0){Ce(e,s,i,a)}else{b(e._queue.length===0);var o=new Uint8Array(s,i,a);K(r,o,false)}}else if($(r)===true){Ce(e,s,i,a);Ie(e)}else{b(q(r)===false,"stream must not be locked");Ce(e,s,i,a)}}function We(e,t){var r=e._controlledReadableStream;b(r._state==="readable");xe(e);x(e);Y(r,t)}function Be(e){var t=e._controlledReadableStream;var r=t._state;if(r==="errored"){return null}if(r==="closed"){return 0}return e._strategyHWM-e._queueTotalSize}function Ge(e,t){t=Number(t);if(u(t)===false){throw new RangeError("bytesWritten must be a finite")}b(e._pendingPullIntos.length>0);Ne(e,t)}function ze(e,t){b(e._pendingPullIntos.length>0);var r=e._pendingPullIntos[0];if(r.byteOffset+r.bytesFilled!==t.byteOffset){throw new RangeError("The region specified by view does not match byobRequest")}if(r.byteLength!==t.byteLength){throw new RangeError("The buffer of view has different capacity than byobRequest")}r.buffer=t.buffer;Ne(e,t.byteLength)}function He(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Xe(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function Ve(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function Ye(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t;e._closedPromise_reject=r})}function Qe(e,t){e._closedPromise=Promise.reject(t);e._closedPromise_resolve=undefined;e._closedPromise_reject=undefined}function Ke(e){e._closedPromise=Promise.resolve(undefined);e._closedPromise_resolve=undefined;e._closedPromise_reject=undefined}function Je(e,t){b(e._closedPromise_resolve!==undefined);b(e._closedPromise_reject!==undefined);e._closedPromise_reject(t);e._closedPromise_resolve=undefined;e._closedPromise_reject=undefined}function Ze(e,t){b(e._closedPromise_resolve===undefined);b(e._closedPromise_reject===undefined);e._closedPromise=Promise.reject(t)}function $e(e){b(e._closedPromise_resolve!==undefined);b(e._closedPromise_reject!==undefined);e._closedPromise_resolve(undefined);e._closedPromise_resolve=undefined;e._closedPromise_reject=undefined}function et(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function tt(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function rt(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function nt(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function it(e){try{Promise.prototype.then.call(e,undefined,function(){})}catch(e){}}},function(e,t,r){"use strict";var n=r(6);var i=r(4);var a=r(2);t.TransformStream=n.TransformStream;t.ReadableStream=i.ReadableStream;t.IsReadableStreamDisturbed=i.IsReadableStreamDisturbed;t.ReadableStreamDefaultControllerClose=i.ReadableStreamDefaultControllerClose;t.ReadableStreamDefaultControllerEnqueue=i.ReadableStreamDefaultControllerEnqueue;t.ReadableStreamDefaultControllerError=i.ReadableStreamDefaultControllerError;t.ReadableStreamDefaultControllerGetDesiredSize=i.ReadableStreamDefaultControllerGetDesiredSize;t.AcquireWritableStreamDefaultWriter=a.AcquireWritableStreamDefaultWriter;t.IsWritableStream=a.IsWritableStream;t.IsWritableStreamLocked=a.IsWritableStreamLocked;t.WritableStream=a.WritableStream;t.WritableStreamAbort=a.WritableStreamAbort;t.WritableStreamDefaultControllerError=a.WritableStreamDefaultControllerError;t.WritableStreamDefaultWriterCloseWithErrorPropagation=a.WritableStreamDefaultWriterCloseWithErrorPropagation;t.WritableStreamDefaultWriterRelease=a.WritableStreamDefaultWriterRelease;t.WritableStreamDefaultWriterWrite=a.WritableStreamDefaultWriterWrite},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var a=r(1),s=a.assert;var o=r(0),u=o.InvokeOrNoop,l=o.PromiseInvokeOrPerformFallback,c=o.PromiseInvokeOrNoop,f=o.typeIsObject;var h=r(4),d=h.ReadableStream,v=h.ReadableStreamDefaultControllerClose,p=h.ReadableStreamDefaultControllerEnqueue,m=h.ReadableStreamDefaultControllerError,g=h.ReadableStreamDefaultControllerGetDesiredSize;var y=r(2),b=y.WritableStream,_=y.WritableStreamDefaultControllerError;function S(e){if(e._errored===true){throw new TypeError("TransformStream is already errored")}if(e._readableClosed===true){throw new TypeError("Readable side is already closed")}x(e)}function A(e,t){if(e._errored===true){throw new TypeError("TransformStream is already errored")}if(e._readableClosed===true){throw new TypeError("Readable side is already closed")}var r=e._readableController;try{p(r,t)}catch(t){e._readableClosed=true;k(e,t);throw e._storedError}var n=g(r);var i=n<=0;if(i===true&&e._backpressure===false){R(e,true)}}function w(e,t){if(e._errored===true){throw new TypeError("TransformStream is already errored")}P(e,t)}function x(e){s(e._errored===false);s(e._readableClosed===false);try{v(e._readableController)}catch(e){s(false)}e._readableClosed=true}function k(e,t){if(e._errored===false){P(e,t)}}function P(e,t){s(e._errored===false);e._errored=true;e._storedError=t;if(e._writableDone===false){_(e._writableController,t)}if(e._readableClosed===false){m(e._readableController,t)}}function C(e){s(e._backpressureChangePromise!==undefined,"_backpressureChangePromise should have been initialized");if(e._backpressure===false){return Promise.resolve()}s(e._backpressure===true,"_backpressure should have been initialized");return e._backpressureChangePromise}function R(e,t){s(e._backpressure!==t,"TransformStreamSetBackpressure() should be called only when backpressure is changed");if(e._backpressureChangePromise!==undefined){e._backpressureChangePromise_resolve(t)}e._backpressureChangePromise=new Promise(function(t){e._backpressureChangePromise_resolve=t});e._backpressureChangePromise.then(function(e){s(e!==t,"_backpressureChangePromise should be fulfilled only when backpressure is changed")});e._backpressure=t}function E(e,t){var r=t._controlledTransformStream;A(r,e);return Promise.resolve()}function T(e,t){s(e._errored===false);s(e._transforming===false);s(e._backpressure===false);e._transforming=true;var r=e._transformer;var n=e._transformStreamController;var i=l(r,"transform",[t,n],E,[t,n]);return i.then(function(){e._transforming=false;return C(e)},function(t){k(e,t);return Promise.reject(t)})}function O(e){if(!f(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")){return false}return true}function I(e){if(!f(e)){return false}if(!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")){return false}return true}var F=function(){function e(t,r){i(this,e);this._transformStream=t;this._startPromise=r}n(e,[{key:"start",value:function e(t){var r=this._transformStream;r._writableController=t;return this._startPromise.then(function(){return C(r)})}},{key:"write",value:function e(t){var r=this._transformStream;return T(r,t)}},{key:"abort",value:function e(){var t=this._transformStream;t._writableDone=true;P(t,new TypeError("Writable side aborted"))}},{key:"close",value:function e(){var t=this._transformStream;s(t._transforming===false);t._writableDone=true;var r=c(t._transformer,"flush",[t._transformStreamController]);return r.then(function(){if(t._errored===true){return Promise.reject(t._storedError)}if(t._readableClosed===false){x(t)}return Promise.resolve()}).catch(function(e){k(t,e);return Promise.reject(t._storedError)})}}]);return e}();var L=function(){function e(t,r){i(this,e);this._transformStream=t;this._startPromise=r}n(e,[{key:"start",value:function e(t){var r=this._transformStream;r._readableController=t;return this._startPromise.then(function(){s(r._backpressureChangePromise!==undefined,"_backpressureChangePromise should have been initialized");if(r._backpressure===true){return Promise.resolve()}s(r._backpressure===false,"_backpressure should have been initialized");return r._backpressureChangePromise})}},{key:"pull",value:function e(){var t=this._transformStream;s(t._backpressure===true,"pull() should be never called while _backpressure is false");s(t._backpressureChangePromise!==undefined,"_backpressureChangePromise should have been initialized");R(t,false);return t._backpressureChangePromise}},{key:"cancel",value:function e(){var t=this._transformStream;t._readableClosed=true;P(t,new TypeError("Readable side canceled"))}}]);return e}();var M=function(){function e(t){i(this,e);if(I(t)===false){throw new TypeError("TransformStreamDefaultController can only be "+"constructed with a TransformStream instance")}if(t._transformStreamController!==undefined){throw new TypeError("TransformStreamDefaultController instances can "+"only be created by the TransformStream constructor")}this._controlledTransformStream=t}n(e,[{key:"enqueue",value:function e(t){if(O(this)===false){throw j("enqueue")}A(this._controlledTransformStream,t)}},{key:"close",value:function e(){if(O(this)===false){throw j("close")}S(this._controlledTransformStream)}},{key:"error",value:function e(t){if(O(this)===false){throw j("error")}w(this._controlledTransformStream,t)}},{key:"desiredSize",get:function e(){if(O(this)===false){throw j("desiredSize")}var t=this._controlledTransformStream;var r=t._readableController;return g(r)}}]);return e}();var N=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};i(this,e);this._transformer=t;var r=t.readableStrategy,n=t.writableStrategy;this._transforming=false;this._errored=false;this._storedError=undefined;this._writableController=undefined;this._readableController=undefined;this._transformStreamController=undefined;this._writableDone=false;this._readableClosed=false;this._backpressure=undefined;this._backpressureChangePromise=undefined;this._backpressureChangePromise_resolve=undefined;this._transformStreamController=new M(this);var a=void 0;var o=new Promise(function(e){a=e});var l=new L(this,o);this._readable=new d(l,r);var c=new F(this,o);this._writable=new b(c,n);s(this._writableController!==undefined);s(this._readableController!==undefined);var f=g(this._readableController);R(this,f<=0);var h=this;var v=u(t,"start",[h._transformStreamController]);a(v);o.catch(function(e){if(h._errored===false){h._errored=true;h._storedError=e}})}n(e,[{key:"readable",get:function e(){if(I(this)===false){throw D("readable")}return this._readable}},{key:"writable",get:function e(){if(I(this)===false){throw D("writable")}return this._writable}}]);return e}();e.exports={TransformStream:N};function j(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function D(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}},function(e,t,r){e.exports=r(5)}]))},function(e,t,r){"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};{var i=false;try{if(typeof URL==="function"&&n(URL.prototype)==="object"&&"origin"in URL.prototype){var a=new URL("b","http://a");a.pathname="c%20d";i=a.href==="http://a/c%20d"}}catch(e){}if(i){t.URL=URL}else{var s=r(351).URL;var o=r(334).URL;if(o){s.createObjectURL=function(e){return o.createObjectURL.apply(o,arguments)};s.revokeObjectURL=function(e){o.revokeObjectURL(e)}}t.URL=s}}},function(e,t,r){"use strict";(function e(){"use strict";var r=Object.create(null);r["ftp"]=21;r["file"]=0;r["gopher"]=70;r["http"]=80;r["https"]=443;r["ws"]=80;r["wss"]=443;var n=Object.create(null);n["%2e"]=".";n[".%2e"]="..";n["%2e."]="..";n["%2e%2e"]="..";function i(e){return r[e]!==undefined}function a(){d.call(this);this._isInvalid=true}function s(e){if(e===""){a.call(this)}return e.toLowerCase()}function o(e){var t=e.charCodeAt(0);if(t>32&&t<127&&[34,35,60,62,63,96].indexOf(t)===-1){return e}return encodeURIComponent(e)}function u(e){var t=e.charCodeAt(0);if(t>32&&t<127&&[34,35,60,62,96].indexOf(t)===-1){return e}return encodeURIComponent(e)}var l,c=/[a-zA-Z]/,f=/[a-zA-Z0-9\+\-\.]/;function h(e,t,h){function d(e){b.push(e)}var v=t||"scheme start",p=0,m="",g=false,y=false,b=[];e:while((e[p-1]!==l||p===0)&&!this._isInvalid){var _=e[p];switch(v){case"scheme start":if(_&&c.test(_)){m+=_.toLowerCase();v="scheme"}else if(!t){m="";v="no scheme";continue}else{d("Invalid scheme.");break e}break;case"scheme":if(_&&f.test(_)){m+=_.toLowerCase()}else if(_===":"){this._scheme=m;m="";if(t){break e}if(i(this._scheme)){this._isRelative=true}if(this._scheme==="file"){v="relative"}else if(this._isRelative&&h&&h._scheme===this._scheme){v="relative or authority"}else if(this._isRelative){v="authority first slash"}else{v="scheme data"}}else if(!t){m="";p=0;v="no scheme";continue}else if(_===l){break e}else{d("Code point not allowed in scheme: "+_);break e}break;case"scheme data":if(_==="?"){this._query="?";v="query"}else if(_==="#"){this._fragment="#";v="fragment"}else{if(_!==l&&_!=="\t"&&_!=="\n"&&_!=="\r"){this._schemeData+=o(_)}}break;case"no scheme":if(!h||!i(h._scheme)){d("Missing scheme.");a.call(this)}else{v="relative";continue}break;case"relative or authority":if(_==="/"&&e[p+1]==="/"){v="authority ignore slashes"}else{d("Expected /, got: "+_);v="relative";continue}break;case"relative":this._isRelative=true;if(this._scheme!=="file"){this._scheme=h._scheme}if(_===l){this._host=h._host;this._port=h._port;this._path=h._path.slice();this._query=h._query;this._username=h._username;this._password=h._password;break e}else if(_==="/"||_==="\\"){if(_==="\\"){d("\\ is an invalid code point.")}v="relative slash"}else if(_==="?"){this._host=h._host;this._port=h._port;this._path=h._path.slice();this._query="?";this._username=h._username;this._password=h._password;v="query"}else if(_==="#"){this._host=h._host;this._port=h._port;this._path=h._path.slice();this._query=h._query;this._fragment="#";this._username=h._username;this._password=h._password;v="fragment"}else{var S=e[p+1];var A=e[p+2];if(this._scheme!=="file"||!c.test(_)||S!==":"&&S!=="|"||A!==l&&A!=="/"&&A!=="\\"&&A!=="?"&&A!=="#"){this._host=h._host;this._port=h._port;this._username=h._username;this._password=h._password;this._path=h._path.slice();this._path.pop()}v="relative path";continue}break;case"relative slash":if(_==="/"||_==="\\"){if(_==="\\"){d("\\ is an invalid code point.")}if(this._scheme==="file"){v="file host"}else{v="authority ignore slashes"}}else{if(this._scheme!=="file"){this._host=h._host;this._port=h._port;this._username=h._username;this._password=h._password}v="relative path";continue}break;case"authority first slash":if(_==="/"){v="authority second slash"}else{d("Expected '/', got: "+_);v="authority ignore slashes";continue}break;case"authority second slash":v="authority ignore slashes";if(_!=="/"){d("Expected '/', got: "+_);continue}break;case"authority ignore slashes":if(_!=="/"&&_!=="\\"){v="authority";continue}else{d("Expected authority, got: "+_)}break;case"authority":if(_==="@"){if(g){d("@ already seen.");m+="%40"}g=true;for(var w=0;w<m.length;w++){var x=m[w];if(x==="\t"||x==="\n"||x==="\r"){d("Invalid whitespace in authority.");continue}if(x===":"&&this._password===null){this._password="";continue}var k=o(x);if(this._password!==null){this._password+=k}else{this._username+=k}}m=""}else if(_===l||_==="/"||_==="\\"||_==="?"||_==="#"){p-=m.length;m="";v="host";continue}else{m+=_}break;case"file host":if(_===l||_==="/"||_==="\\"||_==="?"||_==="#"){if(m.length===2&&c.test(m[0])&&(m[1]===":"||m[1]==="|")){v="relative path"}else if(m.length===0){v="relative path start"}else{this._host=s.call(this,m);m="";v="relative path start"}continue}else if(_==="\t"||_==="\n"||_==="\r"){d("Invalid whitespace in file host.")}else{m+=_}break;case"host":case"hostname":if(_===":"&&!y){this._host=s.call(this,m);m="";v="port";if(t==="hostname"){break e}}else if(_===l||_==="/"||_==="\\"||_==="?"||_==="#"){this._host=s.call(this,m);m="";v="relative path start";if(t){break e}continue}else if(_!=="\t"&&_!=="\n"&&_!=="\r"){if(_==="["){y=true}else if(_==="]"){y=false}m+=_}else{d("Invalid code point in host/hostname: "+_)}break;case"port":if(/[0-9]/.test(_)){m+=_}else if(_===l||_==="/"||_==="\\"||_==="?"||_==="#"||t){if(m!==""){var P=parseInt(m,10);if(P!==r[this._scheme]){this._port=P+""}m=""}if(t){break e}v="relative path start";continue}else if(_==="\t"||_==="\n"||_==="\r"){d("Invalid code point in port: "+_)}else{a.call(this)}break;case"relative path start":if(_==="\\"){d("'\\' not allowed in path.")}v="relative path";if(_!=="/"&&_!=="\\"){continue}break;case"relative path":if(_===l||_==="/"||_==="\\"||!t&&(_==="?"||_==="#")){if(_==="\\"){d("\\ not allowed in relative path.")}var C;if(C=n[m.toLowerCase()]){m=C}if(m===".."){this._path.pop();if(_!=="/"&&_!=="\\"){this._path.push("")}}else if(m==="."&&_!=="/"&&_!=="\\"){this._path.push("")}else if(m!=="."){if(this._scheme==="file"&&this._path.length===0&&m.length===2&&c.test(m[0])&&m[1]==="|"){m=m[0]+":"}this._path.push(m)}m="";if(_==="?"){this._query="?";v="query"}else if(_==="#"){this._fragment="#";v="fragment"}}else if(_!=="\t"&&_!=="\n"&&_!=="\r"){m+=o(_)}break;case"query":if(!t&&_==="#"){this._fragment="#";v="fragment"}else if(_!==l&&_!=="\t"&&_!=="\n"&&_!=="\r"){this._query+=u(_)}break;case"fragment":if(_!==l&&_!=="\t"&&_!=="\n"&&_!=="\r"){this._fragment+=_}break}p++}}function d(){this._scheme="";this._schemeData="";this._username="";this._password=null;this._host="";this._port="";this._path=[];this._query="";this._fragment="";this._isInvalid=false;this._isRelative=false}function v(e,t){if(t!==undefined&&!(t instanceof v)){t=new v(String(t))}this._url=e;d.call(this);var r=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");h.call(this,r,null,t)}v.prototype={toString:function e(){return this.href},get href(){if(this._isInvalid){return this._url}var e="";if(this._username!==""||this._password!==null){e=this._username+(this._password!==null?":"+this._password:"")+"@"}return this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){d.call(this);h.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){if(this._isInvalid){return}h.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){if(this._isInvalid||!this._isRelative){return}h.call(this,e,"host")},get hostname(){return this._host},set hostname(e){if(this._isInvalid||!this._isRelative){return}h.call(this,e,"hostname")},get port(){return this._port},set port(e){if(this._isInvalid||!this._isRelative){return}h.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){if(this._isInvalid||!this._isRelative){return}this._path=[];h.call(this,e,"relative path start")},get search(){return this._isInvalid||!this._query||this._query==="?"?"":this._query},set search(e){if(this._isInvalid||!this._isRelative){return}this._query="?";if(e[0]==="?"){e=e.slice(1)}h.call(this,e,"query")},get hash(){return this._isInvalid||!this._fragment||this._fragment==="#"?"":this._fragment},set hash(e){if(this._isInvalid){return}this._fragment="#";if(e[0]==="#"){e=e.slice(1)}h.call(this,e,"fragment")},get origin(){var e;if(this._isInvalid||!this._scheme){return""}switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null";case"blob":try{return new v(this._schemeData).origin||"null"}catch(e){}return"null"}e=this.host;if(!e){return""}return this._scheme+"://"+e}};t.URL=v})()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.build=t.version=t.setPDFNetworkStreamFactory=t.PDFPageProxy=t.PDFDocumentProxy=t.PDFWorker=t.PDFDataRangeTransport=t.LoopbackPort=t.getDocument=undefined;var n=function(){function e(e,t){var r=[];var n=true;var i=false;var a=undefined;try{for(var s=e[Symbol.iterator](),o;!(n=(o=s.next()).done);n=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;a=e}finally{try{if(!n&&s["return"])s["return"]()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var a=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var s=r(332);var o=r(353);var u=r(354);var l=r(355);var c=r(356);var f=r(334);var h=y(f);var d=r(358);var v=r(359);var p=r(363);var m=r(365);var g=r(366);function y(e){return e&&e.__esModule?e:{default:e}}function b(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++){r[t]=e[t]}return r}else{return Array.from(e)}}function _(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var S=65536;var A=false;var w=void 0;var x=null;{var k=false;if(typeof window==="undefined"){A=true;if(typeof require.ensure==="undefined"){require.ensure=require("node-ensure")}k=true}else if(typeof require!=="undefined"&&typeof require.ensure==="function"){k=true}if(typeof requirejs!=="undefined"&&requirejs.toUrl){w=requirejs.toUrl("pdfjs-dist/build/pdf.worker.js")}var P=typeof requirejs!=="undefined"&&requirejs.load;x=k?function(){return new Promise(function(e,t){require.ensure([],function(){try{var r=void 0;r=require("./pdf.worker.js");e(r.WorkerMessageHandler)}catch(e){t(e)}},t,"pdfjsWorker")})}:P?function(){return new Promise(function(e,t){requirejs(["pdfjs-dist/build/pdf.worker"],function(r){try{e(r.WorkerMessageHandler)}catch(e){t(e)}},t)})}:null;if(!w&&typeof document!=="undefined"){var C=document.currentScript&&document.currentScript.src;if(C){w=C.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2")}}}var R;function E(e){R=e}function T(e){var t=new I;var r;if(typeof e==="string"){r={url:e}}else if((0,s.isArrayBuffer)(e)){r={data:e}}else if(e instanceof F){r={range:e}}else{if((typeof e==="undefined"?"undefined":a(e))!=="object"){throw new Error("Invalid parameter in getDocument, "+"need either Uint8Array, string or a parameter object")}if(!e.url&&!e.data&&!e.range){throw new Error("Invalid parameter object: need either .data, .range or .url")}r=e}var n=Object.create(null);var i=null;var u=null;for(var c in r){if(c==="url"&&typeof window!=="undefined"){n[c]=new s.URL(r[c],window.location).href;continue}else if(c==="range"){i=r[c];continue}else if(c==="worker"){u=r[c];continue}else if(c==="data"&&!(r[c]instanceof Uint8Array)){var f=r[c];if(typeof f==="string"){n[c]=(0,s.stringToBytes)(f)}else if((typeof f==="undefined"?"undefined":a(f))==="object"&&f!==null&&!isNaN(f.length)){n[c]=new Uint8Array(f)}else if((0,s.isArrayBuffer)(f)){n[c]=new Uint8Array(f)}else{throw new Error("Invalid PDF binary data: either typed array, "+"string or array-like object is expected in the "+"data property.")}continue}n[c]=r[c]}n.rangeChunkSize=n.rangeChunkSize||S;n.CMapReaderFactory=n.CMapReaderFactory||o.DOMCMapReaderFactory;n.ignoreErrors=n.stopAtErrors!==true;n.pdfBug=n.pdfBug===true;var h=Object.values(s.NativeImageDecoding);if(n.nativeImageDecoderSupport===undefined||!h.includes(n.nativeImageDecoderSupport)){n.nativeImageDecoderSupport=l.apiCompatibilityParams.nativeImageDecoderSupport||s.NativeImageDecoding.DECODE}if(!Number.isInteger(n.maxImageSize)){n.maxImageSize=-1}if(typeof n.isEvalSupported!=="boolean"){n.isEvalSupported=true}if(typeof n.disableFontFace!=="boolean"){n.disableFontFace=l.apiCompatibilityParams.disableFontFace||false}if(typeof n.disableRange!=="boolean"){n.disableRange=false}if(typeof n.disableStream!=="boolean"){n.disableStream=false}if(typeof n.disableAutoFetch!=="boolean"){n.disableAutoFetch=false}if(typeof n.disableCreateObjectURL!=="boolean"){n.disableCreateObjectURL=l.apiCompatibilityParams.disableCreateObjectURL||false}(0,s.setVerbosityLevel)(n.verbosity);if(!u){var p={postMessageTransfers:n.postMessageTransfers,verbosity:n.verbosity};var g=d.GlobalWorkerOptions.workerPort;if(g){p.port=g;u=j.fromPort(p)}else{u=new j(p)}t._worker=u}var y=t.docId;u.promise.then(function(){if(t.destroyed){throw new Error("Loading aborted")}return O(u,n,i,y).then(function(e){if(t.destroyed){throw new Error("Loading aborted")}var r=void 0;if(i){r=new m.PDFDataTransportStream({length:n.length,initialData:n.initialData,disableRange:n.disableRange,disableStream:n.disableStream},i)}else if(!n.data){r=R({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})}var a=new v.MessageHandler(y,e,u.port);a.postMessageTransfers=u.postMessageTransfers;var s=new D(a,t,r,n);t._transport=s;a.send("Ready",null)})}).catch(t._capability.reject);return t}function O(e,t,r,n){if(e.destroyed){return Promise.reject(new Error("Worker was destroyed"))}if(r){t.length=r.length;t.initialData=r.initialData}return e.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.0.943",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,disableCreateObjectURL:t.disableCreateObjectURL,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported}).then(function(t){if(e.destroyed){throw new Error("Worker was destroyed")}return t})}var I=function e(){var t=0;function r(){this._capability=(0,s.createPromiseCapability)();this._transport=null;this._worker=null;this.docId="d"+t++;this.destroyed=false;this.onPassword=null;this.onProgress=null;this.onUnsupportedFeature=null}r.prototype={get promise(){return this._capability.promise},destroy:function e(){var t=this;this.destroyed=true;var r=!this._transport?Promise.resolve():this._transport.destroy();return r.then(function(){t._transport=null;if(t._worker){t._worker.destroy();t._worker=null}})},then:function e(t,r){return this.promise.then.apply(this.promise,arguments)}};return r}();var F=function(){function e(t,r){_(this,e);this.length=t;this.initialData=r;this._rangeListeners=[];this._progressListeners=[];this._progressiveReadListeners=[];this._readyCapability=(0,s.createPromiseCapability)()}i(e,[{key:"addRangeListener",value:function e(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function e(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function e(t){this._progressiveReadListeners.push(t)}},{key:"onDataRange",value:function e(t,r){var n=true;var i=false;var a=undefined;try{for(var s=this._rangeListeners[Symbol.iterator](),o;!(n=(o=s.next()).done);n=true){var u=o.value;u(t,r)}}catch(e){i=true;a=e}finally{try{if(!n&&s.return){s.return()}}finally{if(i){throw a}}}}},{key:"onDataProgress",value:function e(t){var r=this;this._readyCapability.promise.then(function(){var e=true;var n=false;var i=undefined;try{for(var a=r._progressListeners[Symbol.iterator](),s;!(e=(s=a.next()).done);e=true){var o=s.value;o(t)}}catch(e){n=true;i=e}finally{try{if(!e&&a.return){a.return()}}finally{if(n){throw i}}}})}},{key:"onDataProgressiveRead",value:function e(t){var r=this;this._readyCapability.promise.then(function(){var e=true;var n=false;var i=undefined;try{for(var a=r._progressiveReadListeners[Symbol.iterator](),s;!(e=(s=a.next()).done);e=true){var o=s.value;o(t)}}catch(e){n=true;i=e}finally{try{if(!e&&a.return){a.return()}}finally{if(n){throw i}}}})}},{key:"transportReady",value:function e(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function e(t,r){(0,s.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function e(){}}]);return e}();var L=function(){function e(t,r,n){_(this,e);this.loadingTask=n;this._pdfInfo=t;this._transport=r}i(e,[{key:"getPage",value:function e(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function e(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function e(){return this._transport.getDestinations()}},{key:"getDestination",value:function e(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function e(){return this._transport.getPageLabels()}},{key:"getPageMode",value:function e(){return this._transport.getPageMode()}},{key:"getAttachments",value:function e(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function e(){return this._transport.getJavaScript()}},{key:"getOutline",value:function e(){return this._transport.getOutline()}},{key:"getPermissions",value:function e(){return this._transport.getPermissions()}},{key:"getMetadata",value:function e(){return this._transport.getMetadata()}},{key:"getData",value:function e(){return this._transport.getData()}},{key:"getDownloadInfo",value:function e(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function e(){return this._transport.getStats()}},{key:"cleanup",value:function e(){this._transport.startCleanup()}},{key:"destroy",value:function e(){return this.loadingTask.destroy()}},{key:"numPages",get:function e(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function e(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function e(){return this._transport.loadingParams}}]);return e}();var M=function e(){function t(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;this.pageIndex=e;this._pageInfo=t;this.transport=r;this._stats=n?new o.StatTimer:o.DummyStatTimer;this._pdfBug=n;this.commonObjs=r.commonObjs;this.objs=new q;this.cleanupAfterRender=false;this.pendingCleanup=false;this.intentStates=Object.create(null);this.destroyed=false}t.prototype={get pageNumber(){return this.pageIndex+1},get rotate(){return this._pageInfo.rotate},get ref(){return this._pageInfo.ref},get userUnit(){return this._pageInfo.userUnit},get view(){return this._pageInfo.view},getViewport:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.rotate;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;return new o.PageViewport({viewBox:this.view,scale:t,rotation:r,dontFlip:n})},getAnnotations:function e(t){var r=t&&t.intent||null;if(!this.annotationsPromise||this.annotationsIntent!==r){this.annotationsPromise=this.transport.getAnnotations(this.pageIndex,r);this.annotationsIntent=r}return this.annotationsPromise},render:function e(t){var r=this;var n=this._stats;n.time("Overall");this.pendingCleanup=false;var i=t.intent==="print"?"print":"display";var a=t.canvasFactory||new o.DOMCanvasFactory;var u=new g.WebGLContext({enable:t.enableWebGL});if(!this.intentStates[i]){this.intentStates[i]=Object.create(null)}var l=this.intentStates[i];if(!l.displayReadyCapability){l.receivingOperatorList=true;l.displayReadyCapability=(0,s.createPromiseCapability)();l.operatorList={fnArray:[],argsArray:[],lastChunk:false};n.time("Page Request");this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-1,intent:i,renderInteractiveForms:t.renderInteractiveForms===true})}var c=function e(t){var i=l.renderTasks.indexOf(f);if(i>=0){l.renderTasks.splice(i,1)}if(r.cleanupAfterRender){r.pendingCleanup=true}r._tryCleanup();if(t){f.capability.reject(t)}else{f.capability.resolve()}n.timeEnd("Rendering");n.timeEnd("Overall")};var f=new W(c,t,this.objs,this.commonObjs,l.operatorList,this.pageNumber,a,u,this._pdfBug);f.useRequestAnimationFrame=i!=="print";if(!l.renderTasks){l.renderTasks=[]}l.renderTasks.push(f);var h=f.task;l.displayReadyCapability.promise.then(function(e){if(r.pendingCleanup){c();return}n.time("Rendering");f.initializeGraphics(e);f.operatorListChanged()}).catch(c);return h},getOperatorList:function e(){function t(){if(n.operatorList.lastChunk){n.opListReadCapability.resolve(n.operatorList);var e=n.renderTasks.indexOf(i);if(e>=0){n.renderTasks.splice(e,1)}}}var r="oplist";if(!this.intentStates[r]){this.intentStates[r]=Object.create(null)}var n=this.intentStates[r];var i;if(!n.opListReadCapability){i={};i.operatorListChanged=t;n.receivingOperatorList=true;n.opListReadCapability=(0,s.createPromiseCapability)();n.renderTasks=[];n.renderTasks.push(i);n.operatorList={fnArray:[],argsArray:[],lastChunk:false};this._stats.time("Page Request");this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageIndex,intent:r})}return n.opListReadCapability.promise},streamTextContent:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=100;return this.transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this.pageNumber-1,normalizeWhitespace:t.normalizeWhitespace===true,combineTextItems:t.disableCombineTextItems!==true},{highWaterMark:r,size:function e(t){return t.items.length}})},getTextContent:function e(t){t=t||{};var r=this.streamTextContent(t);return new Promise(function(e,t){function n(){i.read().then(function(t){var r;var i=t.value,s=t.done;if(s){e(a);return}Object.assign(a.styles,i.styles);(r=a.items).push.apply(r,b(i.items));n()},t)}var i=r.getReader();var a={items:[],styles:Object.create(null)};n()})},_destroy:function e(){this.destroyed=true;this.transport.pageCache[this.pageIndex]=null;var t=[];Object.keys(this.intentStates).forEach(function(e){if(e==="oplist"){return}var r=this.intentStates[e];r.renderTasks.forEach(function(e){var r=e.capability.promise.catch(function(){});t.push(r);e.cancel()})},this);this.objs.clear();this.annotationsPromise=null;this.pendingCleanup=false;return Promise.all(t)},cleanup:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;this.pendingCleanup=true;this._tryCleanup(t)},_tryCleanup:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!this.pendingCleanup||Object.keys(this.intentStates).some(function(e){var t=this.intentStates[e];return t.renderTasks.length!==0||t.receivingOperatorList},this)){return}Object.keys(this.intentStates).forEach(function(e){delete this.intentStates[e]},this);this.objs.clear();this.annotationsPromise=null;if(t&&this._stats instanceof o.StatTimer){this._stats=new o.StatTimer}this.pendingCleanup=false},_startRenderPage:function e(t,r){var n=this.intentStates[r];if(n.displayReadyCapability){n.displayReadyCapability.resolve(t)}},_renderPageChunk:function e(t,r){var n=this.intentStates[r];var i,a;for(i=0,a=t.length;i<a;i++){n.operatorList.fnArray.push(t.fnArray[i]);n.operatorList.argsArray.push(t.argsArray[i])}n.operatorList.lastChunk=t.lastChunk;for(i=0;i<n.renderTasks.length;i++){n.renderTasks[i].operatorListChanged()}if(t.lastChunk){n.receivingOperatorList=false;this._tryCleanup()}},get stats(){return this._stats instanceof o.StatTimer?this._stats:null}};return t}();var N=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;_(this,e);this._listeners=[];this._defer=t;this._deferred=Promise.resolve(undefined)}i(e,[{key:"postMessage",value:function e(t,r){var n=this;function i(e){if((typeof e==="undefined"?"undefined":a(e))!=="object"||e===null){return e}if(o.has(e)){return o.get(e)}var t;var n;if((n=e.buffer)&&(0,s.isArrayBuffer)(n)){var u=r&&r.includes(n);if(e===n){t=e}else if(u){t=new e.constructor(n,e.byteOffset,e.byteLength)}else{t=new e.constructor(e)}o.set(e,t);return t}t=Array.isArray(e)?[]:{};o.set(e,t);for(var l in e){var c,f=e;while(!(c=Object.getOwnPropertyDescriptor(f,l))){f=Object.getPrototypeOf(f)}if(typeof c.value==="undefined"||typeof c.value==="function"){continue}t[l]=i(c.value)}return t}if(!this._defer){this._listeners.forEach(function(e){e.call(this,{data:t})},this);return}var o=new WeakMap;var u={data:i(t)};this._deferred.then(function(){n._listeners.forEach(function(e){e.call(this,u)},n)})}},{key:"addEventListener",value:function e(t,r){this._listeners.push(r)}},{key:"removeEventListener",value:function e(t,r){var n=this._listeners.indexOf(r);this._listeners.splice(n,1)}},{key:"terminate",value:function e(){this._listeners=[]}}]);return e}();var j=function e(){var t=0;function r(){if(d.GlobalWorkerOptions.workerSrc){return d.GlobalWorkerOptions.workerSrc}if(typeof w!=="undefined"){return w}throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function n(){try{if(typeof window!=="undefined"){return window.pdfjsWorker&&window.pdfjsWorker.WorkerMessageHandler}}catch(e){}return null}var i=void 0;function a(){if(i){return i.promise}i=(0,s.createPromiseCapability)();var e=n();if(e){i.resolve(e);return i.promise}var t=x||function(){return(0,o.loadScript)(r()).then(function(){return window.pdfjsWorker.WorkerMessageHandler})};t().then(i.resolve,i.reject);return i.promise}function u(e){var t="importScripts('"+e+"');";return s.URL.createObjectURL(new Blob([t]))}var l=new WeakMap;function c(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.name,r=t===undefined?null:t,n=e.port,i=n===undefined?null:n,a=e.postMessageTransfers,o=a===undefined?true:a,u=e.verbosity,c=u===undefined?(0,s.getVerbosityLevel)():u;if(i&&l.has(i)){throw new Error("Cannot use more than one PDFWorker per port")}this.name=r;this.destroyed=false;this.postMessageTransfers=o!==false;this.verbosity=c;this._readyCapability=(0,s.createPromiseCapability)();this._port=null;this._webWorker=null;this._messageHandler=null;if(i){l.set(i,this);this._initializeFromPort(i);return}this._initialize()}c.prototype={get promise(){return this._readyCapability.promise},get port(){return this._port},get messageHandler(){return this._messageHandler},_initializeFromPort:function e(t){this._port=t;this._messageHandler=new v.MessageHandler("main","worker",t);this._messageHandler.on("ready",function(){});this._readyCapability.resolve()},_initialize:function e(){var t=this;if(typeof Worker!=="undefined"&&!A&&!n()){var i=r();try{if(!(0,s.isSameOrigin)(window.location.href,i)){i=u(new s.URL(i,window.location).href)}var a=new Worker(i);var o=new v.MessageHandler("main","worker",a);var l=function e(){a.removeEventListener("error",c);o.destroy();a.terminate();if(t.destroyed){t._readyCapability.reject(new Error("Worker was destroyed"))}else{t._setupFakeWorker()}};var c=function e(){if(!t._webWorker){l()}};a.addEventListener("error",c);o.on("test",function(e){a.removeEventListener("error",c);if(t.destroyed){l();return}if(e&&e.supportTypedArray){t._messageHandler=o;t._port=a;t._webWorker=a;if(!e.supportTransfers){t.postMessageTransfers=false}t._readyCapability.resolve();o.send("configure",{verbosity:t.verbosity})}else{t._setupFakeWorker();o.destroy();a.terminate()}});o.on("ready",function(e){a.removeEventListener("error",c);if(t.destroyed){l();return}try{f()}catch(e){t._setupFakeWorker()}});var f=function e(){var r=new Uint8Array([t.postMessageTransfers?255:0]);try{o.send("test",r,[r.buffer])}catch(e){(0,s.info)("Cannot use postMessage transfers");r[0]=0;o.send("test",r)}};f();return}catch(e){(0,s.info)("The worker has been disabled.")}}this._setupFakeWorker()},_setupFakeWorker:function e(){var r=this;if(!A){(0,s.warn)("Setting up fake worker.");A=true}a().then(function(e){if(r.destroyed){r._readyCapability.reject(new Error("Worker was destroyed"));return}var n=new N;r._port=n;var i="fake"+t++;var a=new v.MessageHandler(i+"_worker",i,n);e.setup(a,n);var s=new v.MessageHandler(i,i+"_worker",n);r._messageHandler=s;r._readyCapability.resolve()}).catch(function(e){r._readyCapability.reject(new Error('Setting up fake worker failed: "'+e.message+'".'))})},destroy:function e(){this.destroyed=true;if(this._webWorker){this._webWorker.terminate();this._webWorker=null}l.delete(this._port);this._port=null;if(this._messageHandler){this._messageHandler.destroy();this._messageHandler=null}}};c.fromPort=function(e){if(!e||!e.port){throw new Error("PDFWorker.fromPort - invalid method signature.")}if(l.has(e.port)){return l.get(e.port)}return new c(e)};c.getWorkerSrc=function(){return r()};return c}();var D=function(){function e(t,r,n,i){_(this,e);this.messageHandler=t;this.loadingTask=r;this.commonObjs=new q;this.fontLoader=new u.FontLoader(r.docId);this._params=i;this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked});this.destroyed=false;this.destroyCapability=null;this._passwordCapability=null;this._networkStream=n;this._fullReader=null;this._lastProgress=null;this.pageCache=[];this.pagePromises=[];this.downloadInfoCapability=(0,s.createPromiseCapability)();this.setupMessageHandler()}i(e,[{key:"destroy",value:function e(){var t=this;if(this.destroyCapability){return this.destroyCapability.promise}this.destroyed=true;this.destroyCapability=(0,s.createPromiseCapability)();if(this._passwordCapability){this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"))}var r=[];this.pageCache.forEach(function(e){if(e){r.push(e._destroy())}});this.pageCache=[];this.pagePromises=[];var n=this.messageHandler.sendWithPromise("Terminate",null);r.push(n);Promise.all(r).then(function(){t.fontLoader.clear();if(t._networkStream){t._networkStream.cancelAllRequests()}if(t.messageHandler){t.messageHandler.destroy();t.messageHandler=null}t.destroyCapability.resolve()},this.destroyCapability.reject);return this.destroyCapability.promise}},{key:"setupMessageHandler",value:function e(){var t=this.messageHandler,r=this.loadingTask;t.on("GetReader",function(e,t){var r=this;(0,s.assert)(this._networkStream);this._fullReader=this._networkStream.getFullReader();this._fullReader.onProgress=function(e){r._lastProgress={loaded:e.loaded,total:e.total}};t.onPull=function(){r._fullReader.read().then(function(e){var r=e.value,n=e.done;if(n){t.close();return}(0,s.assert)((0,s.isArrayBuffer)(r));t.enqueue(new Uint8Array(r),1,[r])}).catch(function(e){t.error(e)})};t.onCancel=function(e){r._fullReader.cancel(e)}},this);t.on("ReaderHeadersReady",function(e){var t=this;var n=(0,s.createPromiseCapability)();var i=this._fullReader;i.headersReady.then(function(){if(!i.isStreamingSupported||!i.isRangeSupported){if(t._lastProgress&&r.onProgress){r.onProgress(t._lastProgress)}i.onProgress=function(e){if(r.onProgress){r.onProgress({loaded:e.loaded,total:e.total})}}}n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},n.reject);return n.promise},this);t.on("GetRangeReader",function(e,t){(0,s.assert)(this._networkStream);var r=this._networkStream.getRangeReader(e.begin,e.end);t.onPull=function(){r.read().then(function(e){var r=e.value,n=e.done;if(n){t.close();return}(0,s.assert)((0,s.isArrayBuffer)(r));t.enqueue(new Uint8Array(r),1,[r])}).catch(function(e){t.error(e)})};t.onCancel=function(e){r.cancel(e)}},this);t.on("GetDoc",function(e){var t=e.pdfInfo;this.numPages=t.numPages;this.pdfDocument=new L(t,this,r);r._capability.resolve(this.pdfDocument)},this);t.on("PasswordRequest",function(e){var t=this;this._passwordCapability=(0,s.createPromiseCapability)();if(r.onPassword){var n=function e(r){t._passwordCapability.resolve({password:r})};try{r.onPassword(n,e.code)}catch(e){this._passwordCapability.reject(e)}}else{this._passwordCapability.reject(new s.PasswordException(e.message,e.code))}return this._passwordCapability.promise},this);t.on("PasswordException",function(e){r._capability.reject(new s.PasswordException(e.message,e.code))},this);t.on("InvalidPDF",function(e){r._capability.reject(new s.InvalidPDFException(e.message))},this);t.on("MissingPDF",function(e){r._capability.reject(new s.MissingPDFException(e.message))},this);t.on("UnexpectedResponse",function(e){r._capability.reject(new s.UnexpectedResponseException(e.message,e.status))},this);t.on("UnknownError",function(e){r._capability.reject(new s.UnknownErrorException(e.message,e.details))},this);t.on("DataLoaded",function(e){if(r.onProgress){r.onProgress({loaded:e.length,total:e.length})}this.downloadInfoCapability.resolve(e)},this);t.on("StartRenderPage",function(e){if(this.destroyed){return}var t=this.pageCache[e.pageIndex];t._stats.timeEnd("Page Request");t._startRenderPage(e.transparency,e.intent)},this);t.on("RenderPageChunk",function(e){if(this.destroyed){return}var t=this.pageCache[e.pageIndex];t._renderPageChunk(e.operatorList,e.intent)},this);t.on("commonobj",function(e){var t=this;if(this.destroyed){return}var r=n(e,3),i=r[0],a=r[1],o=r[2];if(this.commonObjs.hasData(i)){return}switch(a){case"Font":var l=this._params;if("error"in o){var c=o.error;(0,s.warn)("Error during font loading: "+c);this.commonObjs.resolve(i,c);break}var f=null;if(l.pdfBug&&h.default.FontInspector&&h.default.FontInspector.enabled){f={registerFont:function e(t,r){h.default["FontInspector"].fontAdded(t,r)}}}var d=new u.FontFaceObject(o,{isEvalSupported:l.isEvalSupported,disableFontFace:l.disableFontFace,ignoreErrors:l.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:f});var v=function e(r){t.commonObjs.resolve(i,d)};this.fontLoader.bind([d],v);break;case"FontPath":this.commonObjs.resolve(i,o);break;default:throw new Error("Got unknown common object type "+a)}},this);t.on("obj",function(e){if(this.destroyed){return}var t=n(e,4),r=t[0],i=t[1],a=t[2],s=t[3];var o=this.pageCache[i];if(o.objs.hasData(r)){return}switch(a){case"JpegStream":return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)};r.onerror=function(){t(new Error("Error during JPEG image loading"))};r.src=s}).then(function(e){o.objs.resolve(r,e)});case"Image":o.objs.resolve(r,s);var u=8e6;if(s&&"data"in s&&s.data.length>u){o.cleanupAfterRender=true}break;default:throw new Error("Got unknown object type "+a)}},this);t.on("DocProgress",function(e){if(this.destroyed){return}if(r.onProgress){r.onProgress({loaded:e.loaded,total:e.total})}},this);t.on("PageError",function(e){if(this.destroyed){return}var t=this.pageCache[e.pageNum-1];var r=t.intentStates[e.intent];if(r.displayReadyCapability){r.displayReadyCapability.reject(e.error)}else{throw new Error(e.error)}if(r.operatorList){r.operatorList.lastChunk=true;for(var n=0;n<r.renderTasks.length;n++){r.renderTasks[n].operatorListChanged()}}},this);t.on("UnsupportedFeature",this._onUnsupportedFeature,this);t.on("JpegDecode",function(e){if(this.destroyed){return Promise.reject(new Error("Worker was destroyed"))}if(typeof document==="undefined"){return Promise.reject(new Error('"document" is not defined.'))}var t=n(e,2),r=t[0],i=t[1];if(i!==3&&i!==1){return Promise.reject(new Error("Only 3 components or 1 component can be returned"))}return new Promise(function(e,t){var n=new Image;n.onload=function(){var t=n.width;var r=n.height;var a=t*r;var s=a*4;var o=new Uint8ClampedArray(a*i);var u=document.createElement("canvas");u.width=t;u.height=r;var l=u.getContext("2d");l.drawImage(n,0,0);var c=l.getImageData(0,0,t,r).data;if(i===3){for(var f=0,h=0;f<s;f+=4,h+=3){o[h]=c[f];o[h+1]=c[f+1];o[h+2]=c[f+2]}}else if(i===1){for(var d=0,v=0;d<s;d+=4,v++){o[v]=c[d]}}e({data:o,width:t,height:r})};n.onerror=function(){t(new Error("JpegDecode failed to load image"))};n.src=r})},this);t.on("FetchBuiltInCMap",function(e){if(this.destroyed){return Promise.reject(new Error("Worker was destroyed"))}return this.CMapReaderFactory.fetch({name:e.name})},this)}},{key:"_onUnsupportedFeature",value:function e(t){var r=t.featureId;if(this.destroyed){return}if(this.loadingTask.onUnsupportedFeature){this.loadingTask.onUnsupportedFeature(r)}}},{key:"getData",value:function e(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function e(t){var r=this;if(!Number.isInteger(t)||t<=0||t>this.numPages){return Promise.reject(new Error("Invalid page request"))}var n=t-1;if(n in this.pagePromises){return this.pagePromises[n]}var i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(e){if(r.destroyed){throw new Error("Transport destroyed")}var t=new M(n,e,r,r._params.pdfBug);r.pageCache[n]=t;return t});this.pagePromises[n]=i;return i}},{key:"getPageIndex",value:function e(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch(function(e){return Promise.reject(new Error(e))})}},{key:"getAnnotations",value:function e(t,r){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:r})}},{key:"getDestinations",value:function e(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function e(t){if(typeof t!=="string"){return Promise.reject(new Error("Invalid destination request."))}return this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function e(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageMode",value:function e(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getAttachments",value:function e(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function e(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function e(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function e(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function e(){var t=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(e){return{info:e[0],metadata:e[1]?new p.Metadata(e[1]):null,contentDispositionFilename:t._fullReader?t._fullReader.filename:null}})}},{key:"getStats",value:function e(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function e(){var t=this;this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var e=0,r=t.pageCache.length;e<r;e++){var n=t.pageCache[e];if(n){n.cleanup()}}t.commonObjs.clear();t.fontLoader.clear()})}},{key:"loadingParams",get:function e(){var t=this._params;return(0,s.shadow)(this,"loadingParams",{disableAutoFetch:t.disableAutoFetch,disableCreateObjectURL:t.disableCreateObjectURL,disableFontFace:t.disableFontFace,nativeImageDecoderSupport:t.nativeImageDecoderSupport})}}]);return e}();var q=function e(){function t(){this.objs=Object.create(null)}t.prototype={ensureObj:function e(t){if(this.objs[t]){return this.objs[t]}var r={capability:(0,s.createPromiseCapability)(),data:null,resolved:false};this.objs[t]=r;return r},get:function e(t,r){if(r){this.ensureObj(t).capability.promise.then(r);return null}var n=this.objs[t];if(!n||!n.resolved){throw new Error("Requesting object that isn't resolved yet "+t)}return n.data},resolve:function e(t,r){var n=this.ensureObj(t);n.resolved=true;n.data=r;n.capability.resolve(r)},isResolved:function e(t){var r=this.objs;if(!r[t]){return false}return r[t].resolved},hasData:function e(t){return this.isResolved(t)},getData:function e(t){var r=this.objs;if(!r[t]||!r[t].resolved){return null}return r[t].data},clear:function e(){this.objs=Object.create(null)}};return t}();var U=function e(){function t(e){this._internalRenderTask=e;this.onContinue=null}t.prototype={get promise(){return this._internalRenderTask.capability.promise},cancel:function e(){this._internalRenderTask.cancel()},then:function e(t,r){return this.promise.then.apply(this.promise,arguments)}};return t}();var W=function e(){var t=new WeakMap;function r(e,t,r,n,i,a,o,u){var l=arguments.length>8&&arguments[8]!==undefined?arguments[8]:false;this.callback=e;this.params=t;this.objs=r;this.commonObjs=n;this.operatorListIdx=null;this.operatorList=i;this.pageNumber=a;this.canvasFactory=o;this.webGLContext=u;this._pdfBug=l;this.running=false;this.graphicsReadyCallback=null;this.graphicsReady=false;this.useRequestAnimationFrame=false;this.cancelled=false;this.capability=(0,s.createPromiseCapability)();this.task=new U(this);this._continueBound=this._continue.bind(this);this._scheduleNextBound=this._scheduleNext.bind(this);this._nextBound=this._next.bind(this);this._canvas=t.canvasContext.canvas}r.prototype={initializeGraphics:function e(r){if(this.cancelled){return}if(this._canvas){if(t.has(this._canvas)){throw new Error("Cannot use the same canvas during multiple render() operations. "+"Use different canvas or ensure previous operations were "+"cancelled or completed.")}t.set(this._canvas,this)}if(this._pdfBug&&h.default.StepperManager&&h.default.StepperManager.enabled){this.stepper=h.default.StepperManager.create(this.pageNumber-1);this.stepper.init(this.operatorList);this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint()}var n=this.params;this.gfx=new c.CanvasGraphics(n.canvasContext,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,n.imageLayer);this.gfx.beginDrawing({transform:n.transform,viewport:n.viewport,transparency:r,background:n.background});this.operatorListIdx=0;this.graphicsReady=true;if(this.graphicsReadyCallback){this.graphicsReadyCallback()}},cancel:function e(){this.running=false;this.cancelled=true;if(this._canvas){t.delete(this._canvas)}this.callback(new o.RenderingCancelledException("Rendering cancelled, page "+this.pageNumber,"canvas"))},operatorListChanged:function e(){if(!this.graphicsReady){if(!this.graphicsReadyCallback){this.graphicsReadyCallback=this._continueBound}return}if(this.stepper){this.stepper.updateOperatorList(this.operatorList)}if(this.running){return}this._continue()},_continue:function e(){this.running=true;if(this.cancelled){return}if(this.task.onContinue){this.task.onContinue(this._scheduleNextBound)}else{this._scheduleNext()}},_scheduleNext:function e(){var t=this;if(this.useRequestAnimationFrame&&typeof window!=="undefined"){window.requestAnimationFrame(function(){t._nextBound().catch(t.callback)})}else{Promise.resolve().then(this._nextBound).catch(this.callback)}},_next:function e(){var r=this;return new Promise(function(){if(r.cancelled){return}r.operatorListIdx=r.gfx.executeOperatorList(r.operatorList,r.operatorListIdx,r._continueBound,r.stepper);if(r.operatorListIdx===r.operatorList.argsArray.length){r.running=false;if(r.operatorList.lastChunk){r.gfx.endDrawing();if(r._canvas){t.delete(r._canvas)}r.callback()}}})}};return r}();var B,G;{t.version=B="2.0.943";t.build=G="dc98bf76"}t.getDocument=T;t.LoopbackPort=N;t.PDFDataRangeTransport=F;t.PDFWorker=j;t.PDFDocumentProxy=L;t.PDFPageProxy=M;t.setPDFNetworkStreamFactory=E;t.version=B;t.build=G},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadScript=t.DummyStatTimer=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.getFilenameFromUrl=t.addLinkAttributes=t.RenderingCancelledException=t.PageViewport=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=r(332);function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var s="noopener noreferrer nofollow";var o="http://www.w3.org/2000/svg";var u=function(){function e(){a(this,e)}n(e,[{key:"create",value:function e(t,r){if(t<=0||r<=0){throw new Error("invalid canvas size")}var n=document.createElement("canvas");var i=n.getContext("2d");n.width=t;n.height=r;return{canvas:n,context:i}}},{key:"reset",value:function e(t,r,n){if(!t.canvas){throw new Error("canvas is not specified")}if(r<=0||n<=0){throw new Error("invalid canvas size")}t.canvas.width=r;t.canvas.height=n}},{key:"destroy",value:function e(t){if(!t.canvas){throw new Error("canvas is not specified")}t.canvas.width=0;t.canvas.height=0;t.canvas=null;t.context=null}}]);return e}();var l=function(){function e(t){var r=t.baseUrl,n=r===undefined?null:r,i=t.isCompressed,s=i===undefined?false:i;a(this,e);this.baseUrl=n;this.isCompressed=s}n(e,[{key:"fetch",value:function e(t){var r=this;var n=t.name;if(!this.baseUrl){return Promise.reject(new Error('The CMap "baseUrl" parameter must be specified, ensure that '+'the "cMapUrl" and "cMapPacked" API parameters are provided.'))}if(!n){return Promise.reject(new Error("CMap name must be specified."))}return new Promise(function(e,t){var a=r.baseUrl+n+(r.isCompressed?".bcmap":"");var s=new XMLHttpRequest;s.open("GET",a,true);if(r.isCompressed){s.responseType="arraybuffer"}s.onreadystatechange=function(){if(s.readyState!==XMLHttpRequest.DONE){return}if(s.status===200||s.status===0){var n=void 0;if(r.isCompressed&&s.response){n=new Uint8Array(s.response)}else if(!r.isCompressed&&s.responseText){n=(0,i.stringToBytes)(s.responseText)}if(n){e({cMapData:n,compressionType:r.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE});return}}t(new Error("Unable to load "+(r.isCompressed?"binary ":"")+"CMap at: "+a))};s.send(null)})}}]);return e}();var c=function(){function e(){a(this,e)}n(e,[{key:"create",value:function e(t,r){(0,i.assert)(t>0&&r>0,"Invalid SVG dimensions");var n=document.createElementNS(o,"svg:svg");n.setAttribute("version","1.1");n.setAttribute("width",t+"px");n.setAttribute("height",r+"px");n.setAttribute("preserveAspectRatio","none");n.setAttribute("viewBox","0 0 "+t+" "+r);return n}},{key:"createElement",value:function e(t){(0,i.assert)(typeof t==="string","Invalid SVG element type");return document.createElementNS(o,t)}}]);return e}();var f=function(){function e(t){var r=t.viewBox,n=t.scale,i=t.rotation,s=t.offsetX,o=s===undefined?0:s,u=t.offsetY,l=u===undefined?0:u,c=t.dontFlip,f=c===undefined?false:c;a(this,e);this.viewBox=r;this.scale=n;this.rotation=i;this.offsetX=o;this.offsetY=l;var h=(r[2]+r[0])/2;var d=(r[3]+r[1])/2;var v=void 0,p=void 0,m=void 0,g=void 0;i=i%360;i=i<0?i+360:i;switch(i){case 180:v=-1;p=0;m=0;g=1;break;case 90:v=0;p=1;m=1;g=0;break;case 270:v=0;p=-1;m=-1;g=0;break;default:v=1;p=0;m=0;g=-1;break}if(f){m=-m;g=-g}var y=void 0,b=void 0;var _=void 0,S=void 0;if(v===0){y=Math.abs(d-r[1])*n+o;b=Math.abs(h-r[0])*n+l;_=Math.abs(r[3]-r[1])*n;S=Math.abs(r[2]-r[0])*n}else{y=Math.abs(h-r[0])*n+o;b=Math.abs(d-r[1])*n+l;_=Math.abs(r[2]-r[0])*n;S=Math.abs(r[3]-r[1])*n}this.transform=[v*n,p*n,m*n,g*n,y-v*n*h-m*n*d,b-p*n*h-g*n*d];this.width=_;this.height=S}n(e,[{key:"clone",value:function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=r.scale,i=n===undefined?this.scale:n,a=r.rotation,s=a===undefined?this.rotation:a,o=r.dontFlip,u=o===undefined?false:o;return new e({viewBox:this.viewBox.slice(),scale:i,rotation:s,offsetX:this.offsetX,offsetY:this.offsetY,dontFlip:u})}},{key:"convertToViewportPoint",value:function e(t,r){return i.Util.applyTransform([t,r],this.transform)}},{key:"convertToViewportRectangle",value:function e(t){var r=i.Util.applyTransform([t[0],t[1]],this.transform);var n=i.Util.applyTransform([t[2],t[3]],this.transform);return[r[0],r[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function e(t,r){return i.Util.applyInverseTransform([t,r],this.transform)}}]);return e}();var h=function e(){function e(e,t){this.message=e;this.type=t}e.prototype=new Error;e.prototype.name="RenderingCancelledException";e.constructor=e;return e}();var d={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};var v=["","_self","_blank","_parent","_top"];function p(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=t.url,n=t.target,a=t.rel;e.href=e.title=r?(0,i.removeNullCharacters)(r):"";if(r){var o=Object.values(d);var u=o.includes(n)?n:d.NONE;e.target=v[u];e.rel=typeof a==="string"?a:s}}function m(e){var t=e.indexOf("#");var r=e.indexOf("?");var n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)}var g=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;a(this,e);this.enabled=!!t;this.started=Object.create(null);this.times=[]}n(e,[{key:"time",value:function e(t){if(!this.enabled){return}if(t in this.started){(0,i.warn)("Timer is already running for "+t)}this.started[t]=Date.now()}},{key:"timeEnd",value:function e(t){if(!this.enabled){return}if(!(t in this.started)){(0,i.warn)("Timer has not been started for "+t)}this.times.push({name:t,start:this.started[t],end:Date.now()});delete this.started[t]}},{key:"toString",value:function e(){var t=this.times;var r="",n=0;for(var i=0,a=t.length;i<a;++i){var s=t[i]["name"];if(s.length>n){n=s.length}}for(var o=0,u=t.length;o<u;++o){var l=t[o];var c=l.end-l.start;r+=l["name"].padEnd(n)+" "+c+"ms\n"}return r}}]);return e}();var y=function(){function e(){a(this,e);(0,i.unreachable)("Cannot initialize DummyStatTimer.")}n(e,null,[{key:"time",value:function e(t){}},{key:"timeEnd",value:function e(t){}},{key:"toString",value:function e(){return""}}]);return e}();function b(e){return new Promise(function(t,r){var n=document.createElement("script");n.src=e;n.onload=t;n.onerror=function(){r(new Error("Cannot load script at: "+n.src))};(document.head||document.documentElement).appendChild(n)})}t.PageViewport=f;t.RenderingCancelledException=h;t.addLinkAttributes=p;t.getFilenameFromUrl=m;t.LinkTarget=d;t.DEFAULT_LINK_REL=s;t.DOMCanvasFactory=u;t.DOMCMapReaderFactory=l;t.DOMSVGFactory=c;t.StatTimer=g;t.DummyStatTimer=y;t.loadScript=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FontLoader=t.FontFaceObject=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=r(332);function a(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var u=function(){function e(t){o(this,e);if(this.constructor===e){(0,i.unreachable)("Cannot initialize BaseFontLoader.")}this.docId=t;this.nativeFontFaces=[];this.styleElement=null;this.loadingContext={requests:[],nextRequestId:0}}n(e,[{key:"addNativeFontFace",value:function e(t){this.nativeFontFaces.push(t);document.fonts.add(t)}},{key:"insertRule",value:function e(t){var r=this.styleElement;if(!r){r=this.styleElement=document.createElement("style");r.id="PDFJS_FONT_STYLE_TAG_"+this.docId;document.documentElement.getElementsByTagName("head")[0].appendChild(r)}var n=r.sheet;n.insertRule(t,n.cssRules.length)}},{key:"clear",value:function e(){this.nativeFontFaces.forEach(function(e){document.fonts.delete(e)});this.nativeFontFaces.length=0;if(this.styleElement){this.styleElement.remove();this.styleElement=null}}},{key:"bind",value:function e(t,r){var n=[];var a=[];var s=[];var o=function e(t){return t.loaded.catch(function(e){(0,i.warn)('Failed to load font "'+t.family+'": '+e)})};var u=true;var l=false;var c=undefined;try{for(var f=t[Symbol.iterator](),h;!(u=(h=f.next()).done);u=true){var d=h.value;if(d.attached||d.missingFile){continue}d.attached=true;if(this.isFontLoadingAPISupported){var v=d.createNativeFontFace();if(v){this.addNativeFontFace(v);s.push(o(v))}}else{var p=d.createFontFaceRule();if(p){this.insertRule(p);n.push(p);a.push(d)}}}}catch(e){l=true;c=e}finally{try{if(!u&&f.return){f.return()}}finally{if(l){throw c}}}var m=this._queueLoadingCallback(r);if(this.isFontLoadingAPISupported){Promise.all(s).then(m.complete)}else if(n.length>0&&!this.isSyncFontLoadingSupported){this._prepareFontLoadEvent(n,a,m)}else{m.complete()}}},{key:"_queueLoadingCallback",value:function e(t){function r(){(0,i.assert)(!a.done,"completeRequest() cannot be called twice.");a.done=true;while(n.requests.length>0&&n.requests[0].done){var e=n.requests.shift();setTimeout(e.callback,0)}}var n=this.loadingContext;var a={id:"pdfjs-font-loading-"+n.nextRequestId++,done:false,complete:r,callback:t};n.requests.push(a);return a}},{key:"_prepareFontLoadEvent",value:function e(t,r,n){(0,i.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function e(){(0,i.unreachable)("Abstract method `isFontLoadingAPISupported`.")}},{key:"isSyncFontLoadingSupported",get:function e(){(0,i.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function e(){(0,i.unreachable)("Abstract method `_loadTestFont`.")}}]);return e}();var l=void 0;{t.FontLoader=l=function(e){s(t,e);function t(e){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.loadTestFontId=0;return r}n(t,[{key:"_prepareFontLoadEvent",value:function e(t,r,n){function a(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3)&255}function s(e,t,r,n){var i=e.substring(0,t);var a=e.substring(t+r);return i+n+a}var o=void 0,u=void 0;var l=document.createElement("canvas");l.width=1;l.height=1;var c=l.getContext("2d");var f=0;function h(e,t){f++;if(f>30){(0,i.warn)("Load test font never loaded.");t();return}c.font="30px "+e;c.fillText(".",0,20);var r=c.getImageData(0,0,1,1);if(r.data[3]>0){t();return}setTimeout(h.bind(null,e,t))}var d="lt"+Date.now()+this.loadTestFontId++;var v=this._loadTestFont;var p=976;v=s(v,p,d.length,d);var m=16;var g=1482184792;var y=a(v,m);for(o=0,u=d.length-3;o<u;o+=4){y=y-g+a(d,o)|0}if(o<d.length){y=y-g+a(d+"XXX",o)|0}v=s(v,m,4,(0,i.string32)(y));var b="url(data:font/opentype;base64,"+btoa(v)+");";var _='@font-face {font-family:"'+d+'";src:'+b+"}";this.insertRule(_);var S=[];for(o=0,u=r.length;o<u;o++){S.push(r[o].loadedName)}S.push(d);var A=document.createElement("div");A.setAttribute("style","visibility: hidden;"+"width: 10px; height: 10px;"+"position: absolute; top: 0px; left: 0px;");for(o=0,u=S.length;o<u;++o){var w=document.createElement("span");w.textContent="Hi";w.style.fontFamily=S[o];A.appendChild(w)}document.body.appendChild(A);h(d,function(){document.body.removeChild(A);n.complete()})}},{key:"isFontLoadingAPISupported",get:function e(){var t=typeof document!=="undefined"&&!!document.fonts;if(t&&typeof navigator!=="undefined"){var r=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);if(r&&r[1]<63){t=false}}return(0,i.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function e(){var t=false;if(typeof navigator==="undefined"){t=true}else{var r=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);if(r&&r[1]>=14){t=true}}return(0,i.shadow)(this,"isSyncFontLoadingSupported",t)}},{key:"_loadTestFont",get:function e(){var t=function e(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQA"+"FQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAA"+"ALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgA"+"AAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1"+"AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD"+"6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACM"+"AooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4D"+"IP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAA"+"AAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUA"+"AQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgAB"+"AAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABY"+"AAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAA"+"AC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAA"+"AAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQAC"+"AQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3"+"Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTj"+"FQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,i.shadow)(this,"_loadTestFont",t())}}]);return t}(u)}var c={get value(){return(0,i.shadow)(this,"value",(0,i.isEvalSupported)())}};var f=function(){function e(t,r){var n=r.isEvalSupported,i=n===undefined?true:n,a=r.disableFontFace,s=a===undefined?false:a,u=r.ignoreErrors,l=u===undefined?false:u,c=r.onUnsupportedFeature,f=c===undefined?null:c,h=r.fontRegistry,d=h===undefined?null:h;o(this,e);this.compiledGlyphs=Object.create(null);for(var v in t){this[v]=t[v]}this.isEvalSupported=i!==false;this.disableFontFace=s===true;this.ignoreErrors=l===true;this._onUnsupportedFeature=f;this.fontRegistry=d}n(e,[{key:"createNativeFontFace",value:function e(){if(!this.data||this.disableFontFace){return null}var t=new FontFace(this.loadedName,this.data,{});if(this.fontRegistry){this.fontRegistry.registerFont(this)}return t}},{key:"createFontFaceRule",value:function e(){if(!this.data||this.disableFontFace){return null}var t=(0,i.bytesToString)(new Uint8Array(this.data));var r="url(data:"+this.mimetype+";base64,"+btoa(t)+");";var n='@font-face {font-family:"'+this.loadedName+'";src:'+r+"}";if(this.fontRegistry){this.fontRegistry.registerFont(this,r)}return n}},{key:"getPathGenerator",value:function e(t,r){if(this.compiledGlyphs[r]!==undefined){return this.compiledGlyphs[r]}var n=void 0,a=void 0;try{n=t.get(this.loadedName+"_path_"+r)}catch(e){if(!this.ignoreErrors){throw e}if(this._onUnsupportedFeature){this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.font})}(0,i.warn)('getPathGenerator - ignoring character: "'+e+'".');return this.compiledGlyphs[r]=function(e,t){}}if(this.isEvalSupported&&c.value){var s=void 0,o="";for(var u=0,l=n.length;u<l;u++){a=n[u];if(a.args!==undefined){s=a.args.join(",")}else{s=""}o+="c."+a.cmd+"("+s+");\n"}return this.compiledGlyphs[r]=new Function("c","size",o)}return this.compiledGlyphs[r]=function(e,t){for(var r=0,i=n.length;r<i;r++){a=n[r];if(a.cmd==="scale"){a.args=[t,-t]}e[a.cmd].apply(e,a.args)}}}}]);return e}();t.FontFaceObject=f;t.FontLoader=l},function(e,t,r){"use strict";var n=Object.create(null);{var i=r(335);var a=typeof navigator!=="undefined"&&navigator.userAgent||"";var s=/Trident/.test(a);var o=/CriOS/.test(a);(function e(){if(s||o){n.disableCreateObjectURL=true}})();(function e(){if(i()){n.disableFontFace=true;n.nativeImageDecoderSupport="none"}})()}t.apiCompatibilityParams=Object.freeze(n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CanvasGraphics=undefined;var n=r(332);var i=r(357);var a=16;var s=100;var o=4096;var u=.65;var l=true;var c=1e3;var f=16;var h={get value(){return(0,n.shadow)(h,"value",(0,n.isLittleEndian)())}};function d(e){if(!e.mozCurrentTransform){e._originalSave=e.save;e._originalRestore=e.restore;e._originalRotate=e.rotate;e._originalScale=e.scale;e._originalTranslate=e.translate;e._originalTransform=e.transform;e._originalSetTransform=e.setTransform;e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0];e._transformStack=[];Object.defineProperty(e,"mozCurrentTransform",{get:function e(){return this._transformMatrix}});Object.defineProperty(e,"mozCurrentTransformInverse",{get:function e(){var t=this._transformMatrix;var r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5];var u=r*a-n*i;var l=n*i-r*a;return[a/u,n/l,i/l,r/u,(a*s-i*o)/l,(n*s-r*o)/u]}});e.save=function e(){var t=this._transformMatrix;this._transformStack.push(t);this._transformMatrix=t.slice(0,6);this._originalSave()};e.restore=function e(){var t=this._transformStack.pop();if(t){this._transformMatrix=t;this._originalRestore()}};e.translate=function e(t,r){var n=this._transformMatrix;n[4]=n[0]*t+n[2]*r+n[4];n[5]=n[1]*t+n[3]*r+n[5];this._originalTranslate(t,r)};e.scale=function e(t,r){var n=this._transformMatrix;n[0]=n[0]*t;n[1]=n[1]*t;n[2]=n[2]*r;n[3]=n[3]*r;this._originalScale(t,r)};e.transform=function t(r,n,i,a,s,o){var u=this._transformMatrix;this._transformMatrix=[u[0]*r+u[2]*n,u[1]*r+u[3]*n,u[0]*i+u[2]*a,u[1]*i+u[3]*a,u[0]*s+u[2]*o+u[4],u[1]*s+u[3]*o+u[5]];e._originalTransform(r,n,i,a,s,o)};e.setTransform=function t(r,n,i,a,s,o){this._transformMatrix=[r,n,i,a,s,o];e._originalSetTransform(r,n,i,a,s,o)};e.rotate=function e(t){var r=Math.cos(t);var n=Math.sin(t);var i=this._transformMatrix;this._transformMatrix=[i[0]*r+i[2]*n,i[1]*r+i[3]*n,i[0]*-n+i[2]*r,i[1]*-n+i[3]*r,i[4],i[5]];this._originalRotate(t)}}}var v=function e(){function t(e){this.canvasFactory=e;this.cache=Object.create(null)}t.prototype={getCanvas:function e(t,r,n,i){var a;if(this.cache[t]!==undefined){a=this.cache[t];this.canvasFactory.reset(a,r,n);a.context.setTransform(1,0,0,1,0,0)}else{a=this.canvasFactory.create(r,n);this.cache[t]=a}if(i){d(a.context)}return a},clear:function e(){for(var t in this.cache){var r=this.cache[t];this.canvasFactory.destroy(r);delete this.cache[t]}}};return t}();function p(e){var t=1e3;var r=e.width,n=e.height;var i,a,s,o=r+1;var u=new Uint8Array(o*(n+1));var l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]);var c=r+7&~7,f=e.data;var h=new Uint8Array(c*n),d=0,v;for(i=0,v=f.length;i<v;i++){var p=128,m=f[i];while(p>0){h[d++]=m&p?0:255;p>>=1}}var g=0;d=0;if(h[d]!==0){u[0]=1;++g}for(a=1;a<r;a++){if(h[d]!==h[d+1]){u[a]=h[d]?2:1;++g}d++}if(h[d]!==0){u[a]=2;++g}for(i=1;i<n;i++){d=i*c;s=i*o;if(h[d-c]!==h[d]){u[s]=h[d]?1:8;++g}var y=(h[d]?4:0)+(h[d-c]?8:0);for(a=1;a<r;a++){y=(y>>2)+(h[d+1]?4:0)+(h[d-c+1]?8:0);if(l[y]){u[s+a]=l[y];++g}d++}if(h[d-c]!==h[d]){u[s+a]=h[d]?2:4;++g}if(g>t){return null}}d=c*(n-1);s=i*o;if(h[d]!==0){u[s]=8;++g}for(a=1;a<r;a++){if(h[d]!==h[d+1]){u[s+a]=h[d]?4:8;++g}d++}if(h[d]!==0){u[s+a]=4;++g}if(g>t){return null}var b=new Int32Array([0,o,-1,0,-o,0,0,0,1]);var _=[];for(i=0;g&&i<=n;i++){var S=i*o;var A=S+r;while(S<A&&!u[S]){S++}if(S===A){continue}var w=[S%o,i];var x=u[S],k=S,P;do{var C=b[x];do{S+=C}while(!u[S]);P=u[S];if(P!==5&&P!==10){x=P;u[S]=0}else{x=P&51*x>>4;u[S]&=x>>2|x<<2}w.push(S%o);w.push(S/o|0);--g}while(k!==S);_.push(w);--i}var R=function e(t){t.save();t.scale(1/r,-1/n);t.translate(0,-n);t.beginPath();for(var i=0,a=_.length;i<a;i++){var s=_[i];t.moveTo(s[0],s[1]);for(var o=2,u=s.length;o<u;o+=2){t.lineTo(s[o],s[o+1])}}t.fill();t.beginPath();t.restore()};return R}var m=function e(){function t(){this.alphaIsShape=false;this.fontSize=0;this.fontSizeScale=1;this.textMatrix=n.IDENTITY_MATRIX;this.textMatrixScale=1;this.fontMatrix=n.FONT_IDENTITY_MATRIX;this.leading=0;this.x=0;this.y=0;this.lineX=0;this.lineY=0;this.charSpacing=0;this.wordSpacing=0;this.textHScale=1;this.textRenderingMode=n.TextRenderingMode.FILL;this.textRise=0;this.fillColor="#000000";this.strokeColor="#000000";this.patternFill=false;this.fillAlpha=1;this.strokeAlpha=1;this.lineWidth=1;this.activeSMask=null;this.resumeSMaskCtx=null}t.prototype={clone:function e(){return Object.create(this)},setCurrentPoint:function e(t,r){this.x=t;this.y=r}};return t}();var g=function e(){var t=15;var r=10;function g(e,t,r,n,i,a){this.ctx=e;this.current=new m;this.stateStack=[];this.pendingClip=null;this.pendingEOFill=false;this.res=null;this.xobjs=null;this.commonObjs=t;this.objs=r;this.canvasFactory=n;this.webGLContext=i;this.imageLayer=a;this.groupStack=[];this.processingType3=null;this.baseTransform=null;this.baseTransformStack=[];this.groupLevel=0;this.smaskStack=[];this.smaskCounter=0;this.tempSMask=null;this.cachedCanvases=new v(this.canvasFactory);if(e){d(e)}this._cachedGetSinglePixelWidth=null}function y(e,t){if(typeof ImageData!=="undefined"&&t instanceof ImageData){e.putImageData(t,0,0);return}var r=t.height,i=t.width;var a=r%f;var s=(r-a)/f;var o=a===0?s:s+1;var u=e.createImageData(i,f);var l=0,c;var d=t.data;var v=u.data;var p,m,g,y;if(t.kind===n.ImageKind.GRAYSCALE_1BPP){var b=d.byteLength;var _=new Uint32Array(v.buffer,0,v.byteLength>>2);var S=_.length;var A=i+7>>3;var w=4294967295;var x=h.value?4278190080:255;for(p=0;p<o;p++){g=p<s?f:a;c=0;for(m=0;m<g;m++){var k=b-l;var P=0;var C=k>A?i:k*8-7;var R=C&~7;var E=0;var T=0;for(;P<R;P+=8){T=d[l++];_[c++]=T&128?w:x;_[c++]=T&64?w:x;_[c++]=T&32?w:x;_[c++]=T&16?w:x;_[c++]=T&8?w:x;_[c++]=T&4?w:x;_[c++]=T&2?w:x;_[c++]=T&1?w:x}for(;P<C;P++){if(E===0){T=d[l++];E=128}_[c++]=T&E?w:x;E>>=1}}while(c<S){_[c++]=0}e.putImageData(u,0,p*f)}}else if(t.kind===n.ImageKind.RGBA_32BPP){m=0;y=i*f*4;for(p=0;p<s;p++){v.set(d.subarray(l,l+y));l+=y;e.putImageData(u,0,m);m+=f}if(p<o){y=i*a*4;v.set(d.subarray(l,l+y));e.putImageData(u,0,m)}}else if(t.kind===n.ImageKind.RGB_24BPP){g=f;y=i*g;for(p=0;p<o;p++){if(p>=s){g=a;y=i*g}c=0;for(m=y;m--;){v[c++]=d[l++];v[c++]=d[l++];v[c++]=d[l++];v[c++]=255}e.putImageData(u,0,p*f)}}else{throw new Error("bad image kind: "+t.kind)}}function b(e,t){var r=t.height,n=t.width;var i=r%f;var a=(r-i)/f;var s=i===0?a:a+1;var o=e.createImageData(n,f);var u=0;var l=t.data;var c=o.data;for(var h=0;h<s;h++){var d=h<a?f:i;var v=3;for(var p=0;p<d;p++){var m=0;for(var g=0;g<n;g++){if(!m){var y=l[u++];m=128}c[v]=y&m?0:255;v+=4;m>>=1}}e.putImageData(o,0,h*f)}}function _(e,t){var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(var n=0,i=r.length;n<i;n++){var a=r[n];if(e[a]!==undefined){t[a]=e[a]}}if(e.setLineDash!==undefined){t.setLineDash(e.getLineDash());t.lineDashOffset=e.lineDashOffset}}function S(e){e.strokeStyle="#000000";e.fillStyle="#000000";e.fillRule="nonzero";e.globalAlpha=1;e.lineWidth=1;e.lineCap="butt";e.lineJoin="miter";e.miterLimit=10;e.globalCompositeOperation="source-over";e.font="10px sans-serif";if(e.setLineDash!==undefined){e.setLineDash([]);e.lineDashOffset=0}}function A(e,t,r,n){var i=e.length;for(var a=3;a<i;a+=4){var s=e[a];if(s===0){e[a-3]=t;e[a-2]=r;e[a-1]=n}else if(s<255){var o=255-s;e[a-3]=e[a-3]*s+t*o>>8;e[a-2]=e[a-2]*s+r*o>>8;e[a-1]=e[a-1]*s+n*o>>8}}}function w(e,t,r){var n=e.length;var i=1/255;for(var a=3;a<n;a+=4){var s=r?r[e[a]]:e[a];t[a]=t[a]*s*i|0}}function x(e,t,r){var n=e.length;for(var i=3;i<n;i+=4){var a=e[i-3]*77+e[i-2]*152+e[i-1]*28;t[i]=r?t[i]*r[a>>8]>>8:t[i]*a>>16}}function k(e,t,r,n,i,a,s){var o=!!a;var u=o?a[0]:0;var l=o?a[1]:0;var c=o?a[2]:0;var f;if(i==="Luminosity"){f=x}else{f=w}var h=1048576;var d=Math.min(n,Math.ceil(h/r));for(var v=0;v<n;v+=d){var p=Math.min(d,n-v);var m=e.getImageData(0,v,r,p);var g=t.getImageData(0,v,r,p);if(o){A(m.data,u,l,c)}f(m.data,g.data,s);e.putImageData(g,0,v)}}function P(e,t,r,n){var i=t.canvas;var a=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var s=t.backdrop||null;if(!t.transferMap&&n.isEnabled){var o=n.composeSMask({layer:r.canvas,mask:i,properties:{subtype:t.subtype,backdrop:s}});e.setTransform(1,0,0,1,0,0);e.drawImage(o,t.offsetX,t.offsetY);return}k(a,r,i.width,i.height,t.subtype,s,t.transferMap);e.drawImage(i,0,0)}var C=["butt","round","square"];var R=["miter","round","bevel"];var E={};var T={};g.prototype={beginDrawing:function e(t){var r=t.transform,n=t.viewport,i=t.transparency,a=t.background,s=a===undefined?null:a;var o=this.ctx.canvas.width;var u=this.ctx.canvas.height;this.ctx.save();this.ctx.fillStyle=s||"rgb(255, 255, 255)";this.ctx.fillRect(0,0,o,u);this.ctx.restore();if(i){var l=this.cachedCanvases.getCanvas("transparent",o,u,true);this.compositeCtx=this.ctx;this.transparentCanvas=l.canvas;this.ctx=l.context;this.ctx.save();this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save();S(this.ctx);if(r){this.ctx.transform.apply(this.ctx,r)}this.ctx.transform.apply(this.ctx,n.transform);this.baseTransform=this.ctx.mozCurrentTransform.slice();if(this.imageLayer){this.imageLayer.beginLayout()}},executeOperatorList:function e(i,a,s,o){var u=i.argsArray;var l=i.fnArray;var c=a||0;var f=u.length;if(f===c){return c}var h=f-c>r&&typeof s==="function";var d=h?Date.now()+t:0;var v=0;var p=this.commonObjs;var m=this.objs;var g;while(true){if(o!==undefined&&c===o.nextBreakPoint){o.breakIt(c,s);return c}g=l[c];if(g!==n.OPS.dependency){this[g].apply(this,u[c])}else{var y=u[c];for(var b=0,_=y.length;b<_;b++){var S=y[b];var A=S[0]==="g"&&S[1]==="_";var w=A?p:m;if(!w.isResolved(S)){w.get(S,s);return c}}}c++;if(c===f){return c}if(h&&++v>r){if(Date.now()>d){s();return c}v=0}}},endDrawing:function e(){if(this.current.activeSMask!==null){this.endSMaskGroup()}this.ctx.restore();if(this.transparentCanvas){this.ctx=this.compositeCtx;this.ctx.save();this.ctx.setTransform(1,0,0,1,0,0);this.ctx.drawImage(this.transparentCanvas,0,0);this.ctx.restore();this.transparentCanvas=null}this.cachedCanvases.clear();this.webGLContext.clear();if(this.imageLayer){this.imageLayer.endLayout()}},setLineWidth:function e(t){this.current.lineWidth=t;this.ctx.lineWidth=t},setLineCap:function e(t){this.ctx.lineCap=C[t]},setLineJoin:function e(t){this.ctx.lineJoin=R[t]},setMiterLimit:function e(t){this.ctx.miterLimit=t},setDash:function e(t,r){var n=this.ctx;if(n.setLineDash!==undefined){n.setLineDash(t);n.lineDashOffset=r}},setRenderingIntent:function e(t){},setFlatness:function e(t){},setGState:function e(t){for(var r=0,n=t.length;r<n;r++){var i=t[r];var a=i[0];var s=i[1];switch(a){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s[0],s[1]);break;case"CA":this.current.strokeAlpha=i[1];break;case"ca":this.current.fillAlpha=i[1];this.ctx.globalAlpha=i[1];break;case"BM":this.ctx.globalCompositeOperation=s;break;case"SMask":if(this.current.activeSMask){if(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask){this.suspendSMaskGroup()}else{this.endSMaskGroup()}}this.current.activeSMask=s?this.tempSMask:null;if(this.current.activeSMask){this.beginSMaskGroup()}this.tempSMask=null;break}}},beginSMaskGroup:function e(){var t=this.current.activeSMask;var r=t.canvas.width;var n=t.canvas.height;var i="smaskGroupAt"+this.groupLevel;var a=this.cachedCanvases.getCanvas(i,r,n,true);var s=this.ctx;var o=s.mozCurrentTransform;this.ctx.save();var u=a.context;u.scale(1/t.scaleX,1/t.scaleY);u.translate(-t.offsetX,-t.offsetY);u.transform.apply(u,o);t.startTransformInverse=u.mozCurrentTransformInverse;_(s,u);this.ctx=u;this.setGState([["BM","source-over"],["ca",1],["CA",1]]);this.groupStack.push(s);this.groupLevel++},suspendSMaskGroup:function e(){var t=this.ctx;this.groupLevel--;this.ctx=this.groupStack.pop();P(this.ctx,this.current.activeSMask,t,this.webGLContext);this.ctx.restore();this.ctx.save();_(t,this.ctx);this.current.resumeSMaskCtx=t;var r=n.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,r);t.save();t.setTransform(1,0,0,1,0,0);t.clearRect(0,0,t.canvas.width,t.canvas.height);t.restore()},resumeSMaskGroup:function e(){var t=this.current.resumeSMaskCtx;var r=this.ctx;this.ctx=t;this.groupStack.push(r);this.groupLevel++},endSMaskGroup:function e(){var t=this.ctx;this.groupLevel--;this.ctx=this.groupStack.pop();P(this.ctx,this.current.activeSMask,t,this.webGLContext);this.ctx.restore();_(t,this.ctx);var r=n.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,r)},save:function e(){this.ctx.save();var t=this.current;this.stateStack.push(t);this.current=t.clone();this.current.resumeSMaskCtx=null},restore:function e(){if(this.current.resumeSMaskCtx){this.resumeSMaskGroup()}if(this.current.activeSMask!==null&&(this.stateStack.length===0||this.stateStack[this.stateStack.length-1].activeSMask!==this.current.activeSMask)){this.endSMaskGroup()}if(this.stateStack.length!==0){this.current=this.stateStack.pop();this.ctx.restore();this.pendingClip=null;this._cachedGetSinglePixelWidth=null}},transform:function e(t,r,n,i,a,s){this.ctx.transform(t,r,n,i,a,s);this._cachedGetSinglePixelWidth=null},constructPath:function e(t,r){var i=this.ctx;var a=this.current;var s=a.x,o=a.y;for(var u=0,l=0,c=t.length;u<c;u++){switch(t[u]|0){case n.OPS.rectangle:s=r[l++];o=r[l++];var f=r[l++];var h=r[l++];if(f===0){f=this.getSinglePixelWidth()}if(h===0){h=this.getSinglePixelWidth()}var d=s+f;var v=o+h;this.ctx.moveTo(s,o);this.ctx.lineTo(d,o);this.ctx.lineTo(d,v);this.ctx.lineTo(s,v);this.ctx.lineTo(s,o);this.ctx.closePath();break;case n.OPS.moveTo:s=r[l++];o=r[l++];i.moveTo(s,o);break;case n.OPS.lineTo:s=r[l++];o=r[l++];i.lineTo(s,o);break;case n.OPS.curveTo:s=r[l+4];o=r[l+5];i.bezierCurveTo(r[l],r[l+1],r[l+2],r[l+3],s,o);l+=6;break;case n.OPS.curveTo2:i.bezierCurveTo(s,o,r[l],r[l+1],r[l+2],r[l+3]);s=r[l+2];o=r[l+3];l+=4;break;case n.OPS.curveTo3:s=r[l+2];o=r[l+3];i.bezierCurveTo(r[l],r[l+1],s,o,s,o);l+=4;break;case n.OPS.closePath:i.closePath();break}}a.setCurrentPoint(s,o)},closePath:function e(){this.ctx.closePath()},stroke:function e(t){t=typeof t!=="undefined"?t:true;var r=this.ctx;var n=this.current.strokeColor;r.lineWidth=Math.max(this.getSinglePixelWidth()*u,this.current.lineWidth);r.globalAlpha=this.current.strokeAlpha;if(n&&n.hasOwnProperty("type")&&n.type==="Pattern"){r.save();r.strokeStyle=n.getPattern(r,this);r.stroke();r.restore()}else{r.stroke()}if(t){this.consumePath()}r.globalAlpha=this.current.fillAlpha},closeStroke:function e(){this.closePath();this.stroke()},fill:function e(t){t=typeof t!=="undefined"?t:true;var r=this.ctx;var n=this.current.fillColor;var i=this.current.patternFill;var a=false;if(i){r.save();if(this.baseTransform){r.setTransform.apply(r,this.baseTransform)}r.fillStyle=n.getPattern(r,this);a=true}if(this.pendingEOFill){r.fill("evenodd");this.pendingEOFill=false}else{r.fill()}if(a){r.restore()}if(t){this.consumePath()}},eoFill:function e(){this.pendingEOFill=true;this.fill()},fillStroke:function e(){this.fill(false);this.stroke(false);this.consumePath()},eoFillStroke:function e(){this.pendingEOFill=true;this.fillStroke()},closeFillStroke:function e(){this.closePath();this.fillStroke()},closeEOFillStroke:function e(){this.pendingEOFill=true;this.closePath();this.fillStroke()},endPath:function e(){this.consumePath()},clip:function e(){this.pendingClip=E},eoClip:function e(){this.pendingClip=T},beginText:function e(){this.current.textMatrix=n.IDENTITY_MATRIX;this.current.textMatrixScale=1;this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0},endText:function e(){var t=this.pendingTextPaths;var r=this.ctx;if(t===undefined){r.beginPath();return}r.save();r.beginPath();for(var n=0;n<t.length;n++){var i=t[n];r.setTransform.apply(r,i.transform);r.translate(i.x,i.y);i.addToPath(r,i.fontSize)}r.restore();r.clip();r.beginPath();delete this.pendingTextPaths},setCharSpacing:function e(t){this.current.charSpacing=t},setWordSpacing:function e(t){this.current.wordSpacing=t},setHScale:function e(t){this.current.textHScale=t/100},setLeading:function e(t){this.current.leading=-t},setFont:function e(t,r){var i=this.commonObjs.get(t);var o=this.current;if(!i){throw new Error("Can't find font for "+t)}o.fontMatrix=i.fontMatrix?i.fontMatrix:n.FONT_IDENTITY_MATRIX;if(o.fontMatrix[0]===0||o.fontMatrix[3]===0){(0,n.warn)("Invalid font matrix for font "+t)}if(r<0){r=-r;o.fontDirection=-1}else{o.fontDirection=1}this.current.font=i;this.current.fontSize=r;if(i.isType3Font){return}var u=i.loadedName||"sans-serif";var l=i.black?"900":i.bold?"bold":"normal";var c=i.italic?"italic":"normal";var f='"'+u+'", '+i.fallbackName;var h=r<a?a:r>s?s:r;this.current.fontSizeScale=r/h;var d=c+" "+l+" "+h+"px "+f;this.ctx.font=d},setTextRenderingMode:function e(t){this.current.textRenderingMode=t},setTextRise:function e(t){this.current.textRise=t},moveText:function e(t,r){this.current.x=this.current.lineX+=t;this.current.y=this.current.lineY+=r},setLeadingMoveText:function e(t,r){this.setLeading(-r);this.moveText(t,r)},setTextMatrix:function e(t,r,n,i,a,s){this.current.textMatrix=[t,r,n,i,a,s];this.current.textMatrixScale=Math.sqrt(t*t+r*r);this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0},nextLine:function e(){this.moveText(0,this.current.leading)},paintChar:function e(t,r,i,a){var s=this.ctx;var o=this.current;var u=o.font;var l=o.textRenderingMode;var c=o.fontSize/o.fontSizeScale;var f=l&n.TextRenderingMode.FILL_STROKE_MASK;var h=!!(l&n.TextRenderingMode.ADD_TO_PATH_FLAG);var d=o.patternFill&&u.data;var v;if(u.disableFontFace||h||d){v=u.getPathGenerator(this.commonObjs,t)}if(u.disableFontFace||d){s.save();s.translate(r,i);s.beginPath();v(s,c);if(a){s.setTransform.apply(s,a)}if(f===n.TextRenderingMode.FILL||f===n.TextRenderingMode.FILL_STROKE){s.fill()}if(f===n.TextRenderingMode.STROKE||f===n.TextRenderingMode.FILL_STROKE){s.stroke()}s.restore()}else{if(f===n.TextRenderingMode.FILL||f===n.TextRenderingMode.FILL_STROKE){s.fillText(t,r,i)}if(f===n.TextRenderingMode.STROKE||f===n.TextRenderingMode.FILL_STROKE){s.strokeText(t,r,i)}}if(h){var p=this.pendingTextPaths||(this.pendingTextPaths=[]);p.push({transform:s.mozCurrentTransform,x:r,y:i,fontSize:c,addToPath:v})}},get isFontSubpixelAAEnabled(){var e=this.canvasFactory.create(10,10).context;e.scale(1.5,1);e.fillText("I",0,10);var t=e.getImageData(0,0,10,10).data;var r=false;for(var i=3;i<t.length;i+=4){if(t[i]>0&&t[i]<255){r=true;break}}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",r)},showText:function e(t){var r=this.current;var i=r.font;if(i.isType3Font){return this.showType3Text(t)}var a=r.fontSize;if(a===0){return}var s=this.ctx;var o=r.fontSizeScale;var l=r.charSpacing;var c=r.wordSpacing;var f=r.fontDirection;var h=r.textHScale*f;var d=t.length;var v=i.vertical;var p=v?1:-1;var m=i.defaultVMetrics;var g=a*r.fontMatrix[0];var y=r.textRenderingMode===n.TextRenderingMode.FILL&&!i.disableFontFace&&!r.patternFill;s.save();var b=void 0;if(r.patternFill){s.save();var _=r.fillColor.getPattern(s,this);b=s.mozCurrentTransform;s.restore();s.fillStyle=_}s.transform.apply(s,r.textMatrix);s.translate(r.x,r.y+r.textRise);if(f>0){s.scale(h,-1)}else{s.scale(h,1)}var S=r.lineWidth;var A=r.textMatrixScale;if(A===0||S===0){var w=r.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;if(w===n.TextRenderingMode.STROKE||w===n.TextRenderingMode.FILL_STROKE){this._cachedGetSinglePixelWidth=null;S=this.getSinglePixelWidth()*u}}else{S/=A}if(o!==1){s.scale(o,o);S/=o}s.lineWidth=S;var x=0,k;for(k=0;k<d;++k){var P=t[k];if((0,n.isNum)(P)){x+=p*P*a/1e3;continue}var C=false;var R=(P.isSpace?c:0)+l;var E=P.fontChar;var T=P.accent;var O,I,F,L;var M=P.width;if(v){var N,j,D;N=P.vmetric||m;j=P.vmetric?N[1]:M*.5;j=-j*g;D=N[2]*g;M=N?-N[0]:M;O=j/o;I=(x+D)/o}else{O=x/o;I=0}if(i.remeasure&&M>0){var q=s.measureText(E).width*1e3/a*o;if(M<q&&this.isFontSubpixelAAEnabled){var U=M/q;C=true;s.save();s.scale(U,1);O/=U}else if(M!==q){O+=(M-q)/2e3*a/o}}if(P.isInFont||i.missingFile){if(y&&!T){s.fillText(E,O,I)}else{this.paintChar(E,O,I,b);if(T){F=O+T.offset.x/o;L=I-T.offset.y/o;this.paintChar(T.fontChar,F,L,b)}}}var W=M*g+R*f;x+=W;if(C){s.restore()}}if(v){r.y-=x*h}else{r.x+=x*h}s.restore()},showType3Text:function e(t){var r=this.ctx;var i=this.current;var a=i.font;var s=i.fontSize;var o=i.fontDirection;var u=a.vertical?1:-1;var l=i.charSpacing;var c=i.wordSpacing;var f=i.textHScale*o;var h=i.fontMatrix||n.FONT_IDENTITY_MATRIX;var d=t.length;var v=i.textRenderingMode===n.TextRenderingMode.INVISIBLE;var p,m,g,y;if(v||s===0){return}this._cachedGetSinglePixelWidth=null;r.save();r.transform.apply(r,i.textMatrix);r.translate(i.x,i.y);r.scale(f,o);for(p=0;p<d;++p){m=t[p];if((0,n.isNum)(m)){y=u*m*s/1e3;this.ctx.translate(y,0);i.x+=y*f;continue}var b=(m.isSpace?c:0)+l;var _=a.charProcOperatorList[m.operatorListId];if(!_){(0,n.warn)('Type3 character "'+m.operatorListId+'" is not available.');continue}this.processingType3=m;this.save();r.scale(s,s);r.transform.apply(r,h);this.executeOperatorList(_);this.restore();var S=n.Util.applyTransform([m.width,0],h);g=S[0]*s+b;r.translate(g,0);i.x+=g*f}r.restore();this.processingType3=null},setCharWidth:function e(t,r){},setCharWidthAndBounds:function e(t,r,n,i,a,s){this.ctx.rect(n,i,a-n,s-i);this.clip();this.endPath()},getColorN_Pattern:function e(t){var r=this;var n;if(t[0]==="TilingPattern"){var a=t[1];var s=this.baseTransform||this.ctx.mozCurrentTransform.slice();var o={createCanvasGraphics:function e(t){return new g(t,r.commonObjs,r.objs,r.canvasFactory,r.webGLContext)}};n=new i.TilingPattern(t,a,this.ctx,o,s)}else{n=(0,i.getShadingPatternFromIR)(t)}return n},setStrokeColorN:function e(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function e(){this.current.fillColor=this.getColorN_Pattern(arguments);this.current.patternFill=true},setStrokeRGBColor:function e(t,r,i){var a=n.Util.makeCssRgb(t,r,i);this.ctx.strokeStyle=a;this.current.strokeColor=a},setFillRGBColor:function e(t,r,i){var a=n.Util.makeCssRgb(t,r,i);this.ctx.fillStyle=a;this.current.fillColor=a;this.current.patternFill=false},shadingFill:function e(t){var r=this.ctx;this.save();var a=(0,i.getShadingPatternFromIR)(t);r.fillStyle=a.getPattern(r,this,true);var s=r.mozCurrentTransformInverse;if(s){var o=r.canvas;var u=o.width;var l=o.height;var c=n.Util.applyTransform([0,0],s);var f=n.Util.applyTransform([0,l],s);var h=n.Util.applyTransform([u,0],s);var d=n.Util.applyTransform([u,l],s);var v=Math.min(c[0],f[0],h[0],d[0]);var p=Math.min(c[1],f[1],h[1],d[1]);var m=Math.max(c[0],f[0],h[0],d[0]);var g=Math.max(c[1],f[1],h[1],d[1]);this.ctx.fillRect(v,p,m-v,g-p)}else{this.ctx.fillRect(-1e10,-1e10,2e10,2e10)}this.restore()},beginInlineImage:function e(){(0,n.unreachable)("Should not call beginInlineImage")},beginImageData:function e(){(0,n.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function e(t,r){this.save();this.baseTransformStack.push(this.baseTransform);if(Array.isArray(t)&&t.length===6){this.transform.apply(this,t)}this.baseTransform=this.ctx.mozCurrentTransform;if(Array.isArray(r)&&r.length===4){var n=r[2]-r[0];var i=r[3]-r[1];this.ctx.rect(r[0],r[1],n,i);this.clip();this.endPath()}},paintFormXObjectEnd:function e(){this.restore();this.baseTransform=this.baseTransformStack.pop()},beginGroup:function e(t){this.save();var r=this.ctx;if(!t.isolated){(0,n.info)("TODO: Support non-isolated groups.")}if(t.knockout){(0,n.warn)("Knockout groups not supported.")}var i=r.mozCurrentTransform;if(t.matrix){r.transform.apply(r,t.matrix)}if(!t.bbox){throw new Error("Bounding box is required.")}var a=n.Util.getAxialAlignedBoundingBox(t.bbox,r.mozCurrentTransform);var s=[0,0,r.canvas.width,r.canvas.height];a=n.Util.intersect(a,s)||[0,0,0,0];var u=Math.floor(a[0]);var l=Math.floor(a[1]);var c=Math.max(Math.ceil(a[2])-u,1);var f=Math.max(Math.ceil(a[3])-l,1);var h=1,d=1;if(c>o){h=c/o;c=o}if(f>o){d=f/o;f=o}var v="groupAt"+this.groupLevel;if(t.smask){v+="_smask_"+this.smaskCounter++%2}var p=this.cachedCanvases.getCanvas(v,c,f,true);var m=p.context;m.scale(1/h,1/d);m.translate(-u,-l);m.transform.apply(m,i);if(t.smask){this.smaskStack.push({canvas:p.canvas,context:m,offsetX:u,offsetY:l,scaleX:h,scaleY:d,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null})}else{r.setTransform(1,0,0,1,0,0);r.translate(u,l);r.scale(h,d)}_(r,m);this.ctx=m;this.setGState([["BM","source-over"],["ca",1],["CA",1]]);this.groupStack.push(r);this.groupLevel++;this.current.activeSMask=null},endGroup:function e(t){this.groupLevel--;var r=this.ctx;this.ctx=this.groupStack.pop();if(this.ctx.imageSmoothingEnabled!==undefined){this.ctx.imageSmoothingEnabled=false}else{this.ctx.mozImageSmoothingEnabled=false}if(t.smask){this.tempSMask=this.smaskStack.pop()}else{this.ctx.drawImage(r.canvas,0,0)}this.restore()},beginAnnotations:function e(){this.save();if(this.baseTransform){this.ctx.setTransform.apply(this.ctx,this.baseTransform)}},endAnnotations:function e(){this.restore()},beginAnnotation:function e(t,r,n){this.save();S(this.ctx);this.current=new m;if(Array.isArray(t)&&t.length===4){var i=t[2]-t[0];var a=t[3]-t[1];this.ctx.rect(t[0],t[1],i,a);this.clip();this.endPath()}this.transform.apply(this,r);this.transform.apply(this,n)},endAnnotation:function e(){this.restore()},paintJpegXObject:function e(t,r,i){var a=this.objs.get(t);if(!a){(0,n.warn)("Dependent image isn't ready yet");return}this.save();var s=this.ctx;s.scale(1/r,-1/i);s.drawImage(a,0,0,a.width,a.height,0,-i,r,i);if(this.imageLayer){var o=s.mozCurrentTransformInverse;var u=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:t,left:u[0],top:u[1],width:r/o[0],height:i/o[3]})}this.restore()},paintImageMaskXObject:function e(t){var r=this.ctx;var n=t.width,i=t.height;var a=this.current.fillColor;var s=this.current.patternFill;var o=this.processingType3;if(l&&o&&o.compiled===undefined){if(n<=c&&i<=c){o.compiled=p({data:t.data,width:n,height:i})}else{o.compiled=null}}if(o&&o.compiled){o.compiled(r);return}var u=this.cachedCanvases.getCanvas("maskCanvas",n,i);var f=u.context;f.save();b(f,t);f.globalCompositeOperation="source-in";f.fillStyle=s?a.getPattern(f,this):a;f.fillRect(0,0,n,i);f.restore();this.paintInlineImageXObject(u.canvas)},paintImageMaskXObjectRepeat:function e(t,r,n,i){var a=t.width;var s=t.height;var o=this.current.fillColor;var u=this.current.patternFill;var l=this.cachedCanvases.getCanvas("maskCanvas",a,s);var c=l.context;c.save();b(c,t);c.globalCompositeOperation="source-in";c.fillStyle=u?o.getPattern(c,this):o;c.fillRect(0,0,a,s);c.restore();var f=this.ctx;for(var h=0,d=i.length;h<d;h+=2){f.save();f.transform(r,0,0,n,i[h],i[h+1]);f.scale(1,-1);f.drawImage(l.canvas,0,0,a,s,0,-1,1,1);f.restore()}},paintImageMaskXObjectGroup:function e(t){var r=this.ctx;var n=this.current.fillColor;var i=this.current.patternFill;for(var a=0,s=t.length;a<s;a++){var o=t[a];var u=o.width,l=o.height;var c=this.cachedCanvases.getCanvas("maskCanvas",u,l);var f=c.context;f.save();b(f,o);f.globalCompositeOperation="source-in";f.fillStyle=i?n.getPattern(f,this):n;f.fillRect(0,0,u,l);f.restore();r.save();r.transform.apply(r,o.transform);r.scale(1,-1);r.drawImage(c.canvas,0,0,u,l,0,-1,1,1);r.restore()}},paintImageXObject:function e(t){var r=this.objs.get(t);if(!r){(0,n.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(r)},paintImageXObjectRepeat:function e(t,r,i,a){var s=this.objs.get(t);if(!s){(0,n.warn)("Dependent image isn't ready yet");return}var o=s.width;var u=s.height;var l=[];for(var c=0,f=a.length;c<f;c+=2){l.push({transform:[r,0,0,i,a[c],a[c+1]],x:0,y:0,w:o,h:u})}this.paintInlineImageXObjectGroup(s,l)},paintInlineImageXObject:function e(t){var r=t.width;var n=t.height;var i=this.ctx;this.save();i.scale(1/r,-1/n);var a=i.mozCurrentTransformInverse;var s=a[0],o=a[1];var u=Math.max(Math.sqrt(s*s+o*o),1);var l=a[2],c=a[3];var f=Math.max(Math.sqrt(l*l+c*c),1);var h,d;if(typeof HTMLElement==="function"&&t instanceof HTMLElement||!t.data){h=t}else{d=this.cachedCanvases.getCanvas("inlineImage",r,n);var v=d.context;y(v,t);h=d.canvas}var p=r,m=n;var g="prescale1";while(u>2&&p>1||f>2&&m>1){var b=p,_=m;if(u>2&&p>1){b=Math.ceil(p/2);u/=p/b}if(f>2&&m>1){_=Math.ceil(m/2);f/=m/_}d=this.cachedCanvases.getCanvas(g,b,_);v=d.context;v.clearRect(0,0,b,_);v.drawImage(h,0,0,p,m,0,0,b,_);h=d.canvas;p=b;m=_;g=g==="prescale1"?"prescale2":"prescale1"}i.drawImage(h,0,0,p,m,0,-n,r,n);if(this.imageLayer){var S=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:t,left:S[0],top:S[1],width:r/a[0],height:n/a[3]})}this.restore()},paintInlineImageXObjectGroup:function e(t,r){var n=this.ctx;var i=t.width;var a=t.height;var s=this.cachedCanvases.getCanvas("inlineImage",i,a);var o=s.context;y(o,t);for(var u=0,l=r.length;u<l;u++){var c=r[u];n.save();n.transform.apply(n,c.transform);n.scale(1,-1);n.drawImage(s.canvas,c.x,c.y,c.w,c.h,0,-1,1,1);if(this.imageLayer){var f=this.getCanvasPosition(c.x,c.y);this.imageLayer.appendImage({imgData:t,left:f[0],top:f[1],width:i,height:a})}n.restore()}},paintSolidColorImageMask:function e(){this.ctx.fillRect(0,0,1,1)},paintXObject:function e(){(0,n.warn)("Unsupported 'paintXObject' command.")},markPoint:function e(t){},markPointProps:function e(t,r){},beginMarkedContent:function e(t){},beginMarkedContentProps:function e(t,r){},endMarkedContent:function e(){},beginCompat:function e(){},endCompat:function e(){},consumePath:function e(){var t=this.ctx;if(this.pendingClip){if(this.pendingClip===T){t.clip("evenodd")}else{t.clip()}this.pendingClip=null}t.beginPath()},getSinglePixelWidth:function e(t){if(this._cachedGetSinglePixelWidth===null){var r=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function e(t,r){var n=this.ctx.mozCurrentTransform;return[n[0]*t+n[2]*r+n[4],n[1]*t+n[3]*r+n[5]]}};for(var O in n.OPS){g.prototype[n.OPS[O]]=g.prototype[O]}return g}();t.CanvasGraphics=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TilingPattern=t.getShadingPatternFromIR=undefined;var n=r(332);var i={};i.RadialAxial={fromIR:function e(t){var r=t[1];var n=t[2];var i=t[3];var a=t[4];var s=t[5];var o=t[6];return{type:"Pattern",getPattern:function e(t){var u;if(r==="axial"){u=t.createLinearGradient(i[0],i[1],a[0],a[1])}else if(r==="radial"){u=t.createRadialGradient(i[0],i[1],s,a[0],a[1],o)}for(var l=0,c=n.length;l<c;++l){var f=n[l];u.addColorStop(f[0],f[1])}return u}}}};var a=function e(){function t(e,t,r,n,i,a,s,o){var u=t.coords,l=t.colors;var c=e.data,f=e.width*4;var h;if(u[r+1]>u[n+1]){h=r;r=n;n=h;h=a;a=s;s=h}if(u[n+1]>u[i+1]){h=n;n=i;i=h;h=s;s=o;o=h}if(u[r+1]>u[n+1]){h=r;r=n;n=h;h=a;a=s;s=h}var d=(u[r]+t.offsetX)*t.scaleX;var v=(u[r+1]+t.offsetY)*t.scaleY;var p=(u[n]+t.offsetX)*t.scaleX;var m=(u[n+1]+t.offsetY)*t.scaleY;var g=(u[i]+t.offsetX)*t.scaleX;var y=(u[i+1]+t.offsetY)*t.scaleY;if(v>=y){return}var b=l[a],_=l[a+1],S=l[a+2];var A=l[s],w=l[s+1],x=l[s+2];var k=l[o],P=l[o+1],C=l[o+2];var R=Math.round(v),E=Math.round(y);var T,O,I,F;var L,M,N,j;var D;for(var q=R;q<=E;q++){if(q<m){D=q<v?0:v===m?1:(v-q)/(v-m);T=d-(d-p)*D;O=b-(b-A)*D;I=_-(_-w)*D;F=S-(S-x)*D}else{D=q>y?1:m===y?0:(m-q)/(m-y);T=p-(p-g)*D;O=A-(A-k)*D;I=w-(w-P)*D;F=x-(x-C)*D}D=q<v?0:q>y?1:(v-q)/(v-y);L=d-(d-g)*D;M=b-(b-k)*D;N=_-(_-P)*D;j=S-(S-C)*D;var U=Math.round(Math.min(T,L));var W=Math.round(Math.max(T,L));var B=f*q+U*4;for(var G=U;G<=W;G++){D=(T-G)/(T-L);D=D<0?0:D>1?1:D;c[B++]=O-(O-M)*D|0;c[B++]=I-(I-N)*D|0;c[B++]=F-(F-j)*D|0;c[B++]=255}}}function r(e,r,n){var i=r.coords;var a=r.colors;var s,o;switch(r.type){case"lattice":var u=r.verticesPerRow;var l=Math.floor(i.length/u)-1;var c=u-1;for(s=0;s<l;s++){var f=s*u;for(var h=0;h<c;h++,f++){t(e,n,i[f],i[f+1],i[f+u],a[f],a[f+1],a[f+u]);t(e,n,i[f+u+1],i[f+1],i[f+u],a[f+u+1],a[f+1],a[f+u])}}break;case"triangles":for(s=0,o=i.length;s<o;s+=3){t(e,n,i[s],i[s+1],i[s+2],a[s],a[s+1],a[s+2])}break;default:throw new Error("illegal figure")}}function n(e,t,n,i,a,s,o,u){var l=1.1;var c=3e3;var f=2;var h=Math.floor(e[0]);var d=Math.floor(e[1]);var v=Math.ceil(e[2])-h;var p=Math.ceil(e[3])-d;var m=Math.min(Math.ceil(Math.abs(v*t[0]*l)),c);var g=Math.min(Math.ceil(Math.abs(p*t[1]*l)),c);var y=v/m;var b=p/g;var _={coords:n,colors:i,offsetX:-h,offsetY:-d,scaleX:1/y,scaleY:1/b};var S=m+f*2;var A=g+f*2;var w,x,k,P;if(u.isEnabled){w=u.drawFigures({width:m,height:g,backgroundColor:s,figures:a,context:_});x=o.getCanvas("mesh",S,A,false);x.context.drawImage(w,f,f);w=x.canvas}else{x=o.getCanvas("mesh",S,A,false);var C=x.context;var R=C.createImageData(m,g);if(s){var E=R.data;for(k=0,P=E.length;k<P;k+=4){E[k]=s[0];E[k+1]=s[1];E[k+2]=s[2];E[k+3]=255}}for(k=0;k<a.length;k++){r(R,a[k],_)}C.putImageData(R,f,f);w=x.canvas}return{canvas:w,offsetX:h-f*y,offsetY:d-f*b,scaleX:y,scaleY:b}}return n}();i.Mesh={fromIR:function e(t){var r=t[2];var i=t[3];var s=t[4];var o=t[5];var u=t[6];var l=t[8];return{type:"Pattern",getPattern:function e(t,c,f){var h;if(f){h=n.Util.singularValueDecompose2dScale(t.mozCurrentTransform)}else{h=n.Util.singularValueDecompose2dScale(c.baseTransform);if(u){var d=n.Util.singularValueDecompose2dScale(u);h=[h[0]*d[0],h[1]*d[1]]}}var v=a(o,h,r,i,s,f?null:l,c.cachedCanvases,c.webGLContext);if(!f){t.setTransform.apply(t,c.baseTransform);if(u){t.transform.apply(t,u)}}t.translate(v.offsetX,v.offsetY);t.scale(v.scaleX,v.scaleY);return t.createPattern(v.canvas,"no-repeat")}}}};i.Dummy={fromIR:function e(){return{type:"Pattern",getPattern:function e(){return"hotpink"}}}};function s(e){var t=i[e[0]];if(!t){throw new Error("Unknown IR type: "+e[0])}return t.fromIR(e)}var o=function e(){var t={COLORED:1,UNCOLORED:2};var r=3e3;function i(e,t,r,n,i){this.operatorList=e[2];this.matrix=e[3]||[1,0,0,1,0,0];this.bbox=e[4];this.xstep=e[5];this.ystep=e[6];this.paintType=e[7];this.tilingType=e[8];this.color=t;this.canvasGraphicsFactory=n;this.baseTransform=i;this.type="Pattern";this.ctx=r}i.prototype={createPatternCanvas:function e(t){var i=this.operatorList;var a=this.bbox;var s=this.xstep;var o=this.ystep;var u=this.paintType;var l=this.tilingType;var c=this.color;var f=this.canvasGraphicsFactory;(0,n.info)("TilingType: "+l);var h=a[0],d=a[1],v=a[2],p=a[3];var m=[h,d];var g=[h+s,d+o];var y=g[0]-m[0];var b=g[1]-m[1];var _=n.Util.singularValueDecompose2dScale(this.matrix);var S=n.Util.singularValueDecompose2dScale(this.baseTransform);var A=[_[0]*S[0],_[1]*S[1]];y=Math.min(Math.ceil(Math.abs(y*A[0])),r);b=Math.min(Math.ceil(Math.abs(b*A[1])),r);var w=t.cachedCanvases.getCanvas("pattern",y,b,true);var x=w.context;var k=f.createCanvasGraphics(x);k.groupLevel=t.groupLevel;this.setFillAndStrokeStyleToContext(k,u,c);this.setScale(y,b,s,o);this.transformToScale(k);var P=[1,0,0,1,-m[0],-m[1]];k.transform.apply(k,P);this.clipBbox(k,a,h,d,v,p);k.executeOperatorList(i);return w.canvas},setScale:function e(t,r,n,i){this.scale=[t/n,r/i]},transformToScale:function e(t){var r=this.scale;var n=[r[0],0,0,r[1],0,0];t.transform.apply(t,n)},scaleToContext:function e(){var t=this.scale;this.ctx.scale(1/t[0],1/t[1])},clipBbox:function e(t,r,n,i,a,s){if(Array.isArray(r)&&r.length===4){var o=a-n;var u=s-i;t.ctx.rect(n,i,o,u);t.clip();t.endPath()}},setFillAndStrokeStyleToContext:function e(r,i,a){var s=r.ctx,o=r.current;switch(i){case t.COLORED:var u=this.ctx;s.fillStyle=u.fillStyle;s.strokeStyle=u.strokeStyle;o.fillColor=u.fillStyle;o.strokeColor=u.strokeStyle;break;case t.UNCOLORED:var l=n.Util.makeCssRgb(a[0],a[1],a[2]);s.fillStyle=l;s.strokeStyle=l;o.fillColor=l;o.strokeColor=l;break;default:throw new n.FormatError("Unsupported paint type: "+i)}},getPattern:function e(t,r){var n=this.createPatternCanvas(r);t=this.ctx;t.setTransform.apply(t,this.baseTransform);t.transform.apply(t,this.matrix);this.scaleToContext();return t.createPattern(n,"repeat")}};return i}();t.getShadingPatternFromIR=s;t.TilingPattern=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=Object.create(null);n.workerPort=n.workerPort===undefined?null:n.workerPort;n.workerSrc=n.workerSrc===undefined?"":n.workerSrc;t.GlobalWorkerOptions=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageHandler=undefined;var n=r(360);var i=u(n);var a=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var s=function(){var e=l(i.default.mark(function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;return i.default.wrap(function e(i){while(1){switch(i.prev=i.next){case 0:if(t){i.next=2;break}return i.abrupt("return");case 2:return i.abrupt("return",t.apply(n,r));case 3:case"end":return i.stop()}}},e,this)}));return function t(r,n){return e.apply(this,arguments)}}();var o=r(332);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(i,a){try{var s=t[i](a);var o=s.value}catch(e){r(e);return}if(s.done){e(o)}else{return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)})}}return n("next")})}}function c(e){if((typeof e==="undefined"?"undefined":a(e))!=="object"){return e}switch(e.name){case"AbortException":return new o.AbortException(e.message);case"MissingPDFException":return new o.MissingPDFException(e.message);case"UnexpectedResponseException":return new o.UnexpectedResponseException(e.message,e.status);default:return new o.UnknownErrorException(e.message,e.details)}}function f(e){if(!(e instanceof Error)||e instanceof o.AbortException||e instanceof o.MissingPDFException||e instanceof o.UnexpectedResponseException||e instanceof o.UnknownErrorException){return e}return new o.UnknownErrorException(e.message,e.toString())}function h(e,t,r){if(t){e.resolve()}else{e.reject(r)}}function d(e){return Promise.resolve(e).catch(function(){})}function v(e,t,r){var n=this;this.sourceName=e;this.targetName=t;this.comObj=r;this.callbackId=1;this.streamId=1;this.postMessageTransfers=true;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);var i=this.callbacksCapabilities=Object.create(null);var a=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName!==n.sourceName){return}if(t.stream){n._processStreamMessage(t)}else if(t.isReply){var s=t.callbackId;if(t.callbackId in i){var o=i[s];delete i[s];if("error"in t){o.reject(c(t.error))}else{o.resolve(t.data)}}else{throw new Error("Cannot resolve callback "+s)}}else if(t.action in a){var u=a[t.action];if(t.callbackId){var l=n.sourceName;var h=t.sourceName;Promise.resolve().then(function(){return u[0].call(u[1],t.data)}).then(function(e){r.postMessage({sourceName:l,targetName:h,isReply:true,callbackId:t.callbackId,data:e})},function(e){r.postMessage({sourceName:l,targetName:h,isReply:true,callbackId:t.callbackId,error:f(e)})})}else if(t.streamId){n._createStreamSink(t)}else{u[0].call(u[1],t.data)}}else{throw new Error("Unknown action from worker: "+t.action)}};r.addEventListener("message",this._onComObjOnMessage)}v.prototype={on:function e(t,r,n){var i=this.actionHandler;if(i[t]){throw new Error('There is already an actionName called "'+t+'"')}i[t]=[r,n]},send:function e(t,r,n){var i={sourceName:this.sourceName,targetName:this.targetName,action:t,data:r};this.postMessage(i,n)},sendWithPromise:function e(t,r,n){var i=this.callbackId++;var a={sourceName:this.sourceName,targetName:this.targetName,action:t,data:r,callbackId:i};var s=(0,o.createPromiseCapability)();this.callbacksCapabilities[i]=s;try{this.postMessage(a,n)}catch(e){s.reject(e)}return s.promise},sendWithStream:function e(t,r,n,i){var a=this;var s=this.streamId++;var u=this.sourceName;var l=this.targetName;return new o.ReadableStream({start:function e(n){var i=(0,o.createPromiseCapability)();a.streamControllers[s]={controller:n,startCall:i,isClosed:false};a.postMessage({sourceName:u,targetName:l,action:t,streamId:s,data:r,desiredSize:n.desiredSize});return i.promise},pull:function e(t){var r=(0,o.createPromiseCapability)();a.streamControllers[s].pullCall=r;a.postMessage({sourceName:u,targetName:l,stream:"pull",streamId:s,desiredSize:t.desiredSize});return r.promise},cancel:function e(t){var r=(0,o.createPromiseCapability)();a.streamControllers[s].cancelCall=r;a.streamControllers[s].isClosed=true;a.postMessage({sourceName:u,targetName:l,stream:"cancel",reason:t,streamId:s});return r.promise}},n)},_createStreamSink:function e(t){var r=this;var n=this;var i=this.actionHandler[t.action];var a=t.streamId;var u=t.desiredSize;var l=this.sourceName;var c=t.sourceName;var f=(0,o.createPromiseCapability)();var h=function e(t){var n=t.stream,i=t.chunk,s=t.transfers,o=t.success,u=t.reason;r.postMessage({sourceName:l,targetName:c,stream:n,streamId:a,chunk:i,success:o,reason:u},s)};var d={enqueue:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=arguments[2];if(this.isCancelled){return}var i=this.desiredSize;this.desiredSize-=r;if(i>0&&this.desiredSize<=0){this.sinkCapability=(0,o.createPromiseCapability)();this.ready=this.sinkCapability.promise}h({stream:"enqueue",chunk:t,transfers:n})},close:function e(){if(this.isCancelled){return}this.isCancelled=true;h({stream:"close"});delete n.streamSinks[a]},error:function e(t){if(this.isCancelled){return}this.isCancelled=true;h({stream:"error",reason:t})},sinkCapability:f,onPull:null,onCancel:null,isCancelled:false,desiredSize:u,ready:null};d.sinkCapability.resolve();d.ready=d.sinkCapability.promise;this.streamSinks[a]=d;s(i[0],[t.data,d],i[1]).then(function(){h({stream:"start_complete",success:true})},function(e){h({stream:"start_complete",success:false,reason:e})})},_processStreamMessage:function e(t){var r=this;var n=this.sourceName;var i=t.sourceName;var a=t.streamId;var u=function e(t){var s=t.stream,o=t.success,u=t.reason;r.comObj.postMessage({sourceName:n,targetName:i,stream:s,success:o,streamId:a,reason:u})};var l=function e(){Promise.all([r.streamControllers[t.streamId].startCall,r.streamControllers[t.streamId].pullCall,r.streamControllers[t.streamId].cancelCall].map(function(e){return e&&d(e.promise)})).then(function(){delete r.streamControllers[t.streamId]})};switch(t.stream){case"start_complete":h(this.streamControllers[t.streamId].startCall,t.success,c(t.reason));break;case"pull_complete":h(this.streamControllers[t.streamId].pullCall,t.success,c(t.reason));break;case"pull":if(!this.streamSinks[t.streamId]){u({stream:"pull_complete",success:true});break}if(this.streamSinks[t.streamId].desiredSize<=0&&t.desiredSize>0){this.streamSinks[t.streamId].sinkCapability.resolve()}this.streamSinks[t.streamId].desiredSize=t.desiredSize;s(this.streamSinks[t.streamId].onPull).then(function(){u({stream:"pull_complete",success:true})},function(e){u({stream:"pull_complete",success:false,reason:e})});break;case"enqueue":(0,o.assert)(this.streamControllers[t.streamId],"enqueue should have stream controller");if(!this.streamControllers[t.streamId].isClosed){this.streamControllers[t.streamId].controller.enqueue(t.chunk)}break;case"close":(0,o.assert)(this.streamControllers[t.streamId],"close should have stream controller");if(this.streamControllers[t.streamId].isClosed){break}this.streamControllers[t.streamId].isClosed=true;this.streamControllers[t.streamId].controller.close();l();break;case"error":(0,o.assert)(this.streamControllers[t.streamId],"error should have stream controller");this.streamControllers[t.streamId].controller.error(c(t.reason));l();break;case"cancel_complete":h(this.streamControllers[t.streamId].cancelCall,t.success,c(t.reason));l();break;case"cancel":if(!this.streamSinks[t.streamId]){break}s(this.streamSinks[t.streamId].onCancel,[c(t.reason)]).then(function(){u({stream:"cancel_complete",success:true})},function(e){u({stream:"cancel_complete",success:false,reason:e})});this.streamSinks[t.streamId].sinkCapability.reject(c(t.reason));this.streamSinks[t.streamId].isCancelled=true;delete this.streamSinks[t.streamId];break;default:throw new Error("Unexpected stream case")}},postMessage:function e(t,r){if(r&&this.postMessageTransfers){this.comObj.postMessage(t,r)}else{this.comObj.postMessage(t)}},destroy:function e(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}};t.MessageHandler=v},function(e,t,r){"use strict";e.exports=r(361)},function(e,t,r){"use strict";var n=function(){return this}()||Function("return this")();var i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0;var a=i&&n.regeneratorRuntime;n.regeneratorRuntime=undefined;e.exports=r(362);if(i){n.regeneratorRuntime=a}else{try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=undefined}}},function(e,t,r){"use strict";(function(e){var t=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(r){"use strict";var n=Object.prototype;var i=n.hasOwnProperty;var a;var s=typeof Symbol==="function"?Symbol:{};var o=s.iterator||"@@iterator";var u=s.asyncIterator||"@@asyncIterator";var l=s.toStringTag||"@@toStringTag";var c=(false?a:t(e))==="object";var f=r.regeneratorRuntime;if(f){if(c){e.exports=f}return}f=r.regeneratorRuntime=c?e.exports:{};function h(e,t,r,n){var i=t&&t.prototype instanceof b?t:b;var a=Object.create(i.prototype);var s=new I(n||[]);a._invoke=R(e,r,s);return a}f.wrap=h;function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}var v="suspendedStart";var p="suspendedYield";var m="executing";var g="completed";var y={};function b(){}function _(){}function S(){}var A={};A[o]=function(){return this};var w=Object.getPrototypeOf;var x=w&&w(w(F([])));if(x&&x!==n&&i.call(x,o)){A=x}var k=S.prototype=b.prototype=Object.create(A);_.prototype=k.constructor=S;S.constructor=_;S[l]=_.displayName="GeneratorFunction";function P(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}f.isGeneratorFunction=function(e){var t=typeof e==="function"&&e.constructor;return t?t===_||(t.displayName||t.name)==="GeneratorFunction":false};f.mark=function(e){if(Object.setPrototypeOf){Object.setPrototypeOf(e,S)}else{e.__proto__=S;if(!(l in e)){e[l]="GeneratorFunction"}}e.prototype=Object.create(k);return e};f.awrap=function(e){return{__await:e}};function C(e){function r(n,a,s,o){var u=d(e[n],e,a);if(u.type==="throw"){o(u.arg)}else{var l=u.arg;var c=l.value;if(c&&(typeof c==="undefined"?"undefined":t(c))==="object"&&i.call(c,"__await")){return Promise.resolve(c.__await).then(function(e){r("next",e,s,o)},function(e){r("throw",e,s,o)})}return Promise.resolve(c).then(function(e){l.value=e;s(l)},o)}}var n;function a(e,t){function i(){return new Promise(function(n,i){r(e,t,n,i)})}return n=n?n.then(i,i):i()}this._invoke=a}P(C.prototype);C.prototype[u]=function(){return this};f.AsyncIterator=C;f.async=function(e,t,r,n){var i=new C(h(e,t,r,n));return f.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})};function R(e,t,r){var n=v;return function i(a,s){if(n===m){throw new Error("Generator is already running")}if(n===g){if(a==="throw"){throw s}return L()}r.method=a;r.arg=s;while(true){var o=r.delegate;if(o){var u=E(o,r);if(u){if(u===y)continue;return u}}if(r.method==="next"){r.sent=r._sent=r.arg}else if(r.method==="throw"){if(n===v){n=g;throw r.arg}r.dispatchException(r.arg)}else if(r.method==="return"){r.abrupt("return",r.arg)}n=m;var l=d(e,t,r);if(l.type==="normal"){n=r.done?g:p;if(l.arg===y){continue}return{value:l.arg,done:r.done}}else if(l.type==="throw"){n=g;r.method="throw";r.arg=l.arg}}}}function E(e,t){var r=e.iterator[t.method];if(r===a){t.delegate=null;if(t.method==="throw"){if(e.iterator.return){t.method="return";t.arg=a;E(e,t);if(t.method==="throw"){return y}}t.method="throw";t.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var n=d(r,e.iterator,t.arg);if(n.type==="throw"){t.method="throw";t.arg=n.arg;t.delegate=null;return y}var i=n.arg;if(!i){t.method="throw";t.arg=new TypeError("iterator result is not an object");t.delegate=null;return y}if(i.done){t[e.resultName]=i.value;t.next=e.nextLoc;if(t.method!=="return"){t.method="next";t.arg=a}}else{return i}t.delegate=null;return y}P(k);k[l]="Generator";k[o]=function(){return this};k.toString=function(){return"[object Generator]"};function T(e){var t={tryLoc:e[0]};if(1 in e){t.catchLoc=e[1]}if(2 in e){t.finallyLoc=e[2];t.afterLoc=e[3]}this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal";delete t.arg;e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}];e.forEach(T,this);this.reset(true)}f.keys=function(e){var t=[];for(var r in e){t.push(r)}t.reverse();return function r(){while(t.length){var n=t.pop();if(n in e){r.value=n;r.done=false;return r}}r.done=true;return r}};function F(e){if(e){var t=e[o];if(t){return t.call(e)}if(typeof e.next==="function"){return e}if(!isNaN(e.length)){var r=-1,n=function t(){while(++r<e.length){if(i.call(e,r)){t.value=e[r];t.done=false;return t}}t.value=a;t.done=true;return t};return n.next=n}}return{next:L}}f.values=F;function L(){return{value:a,done:true}}I.prototype={constructor:I,reset:function e(t){this.prev=0;this.next=0;this.sent=this._sent=a;this.done=false;this.delegate=null;this.method="next";this.arg=a;this.tryEntries.forEach(O);if(!t){for(var r in this){if(r.charAt(0)==="t"&&i.call(this,r)&&!isNaN(+r.slice(1))){this[r]=a}}}},stop:function e(){this.done=true;var t=this.tryEntries[0];var r=t.completion;if(r.type==="throw"){throw r.arg}return this.rval},dispatchException:function e(t){if(this.done){throw t}var r=this;function n(e,n){u.type="throw";u.arg=t;r.next=e;if(n){r.method="next";r.arg=a}return!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s];var u=o.completion;if(o.tryLoc==="root"){return n("end")}if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc");var c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc){return n(o.catchLoc,true)}else if(this.prev<o.finallyLoc){return n(o.finallyLoc)}}else if(l){if(this.prev<o.catchLoc){return n(o.catchLoc,true)}}else if(c){if(this.prev<o.finallyLoc){return n(o.finallyLoc)}}else{throw new Error("try statement without catch or finally")}}}},abrupt:function e(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}if(s&&(t==="break"||t==="continue")&&s.tryLoc<=r&&r<=s.finallyLoc){s=null}var o=s?s.completion:{};o.type=t;o.arg=r;if(s){this.method="next";this.next=s.finallyLoc;return y}return this.complete(o)},complete:function e(t,r){if(t.type==="throw"){throw t.arg}if(t.type==="break"||t.type==="continue"){this.next=t.arg}else if(t.type==="return"){this.rval=this.arg=t.arg;this.method="return";this.next="end"}else if(t.type==="normal"&&r){this.next=r}return y},finish:function e(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t){this.complete(n.completion,n.afterLoc);O(n);return y}}},catch:function e(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if(i.type==="throw"){var a=i.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function e(t,r,n){this.delegate={iterator:F(t),resultName:r,nextLoc:n};if(this.method==="next"){this.arg=a}return y}}}(function(){return this}()||Function("return this")())}).call(this,r(328)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Metadata=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=r(332);var a=r(364);function s(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var o=function(){function e(t){s(this,e);(0,i.assert)(typeof t==="string","Metadata: input is not a string");t=this._repair(t);var r=new a.SimpleXMLParser;var n=r.parseFromString(t);this._metadata=Object.create(null);if(n){this._parse(n)}}n(e,[{key:"_repair",value:function e(t){return t.replace(/>\\376\\377([^<]+)/g,function(e,t){var r=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,r,n){return String.fromCharCode(t*64+r*8+n*1)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: "+t+" isn't defined.")});var n="";for(var i=0,a=r.length;i<a;i+=2){var s=r.charCodeAt(i)*256+r.charCodeAt(i+1);if(s>=32&&s<127&&s!==60&&s!==62&&s!==38){n+=String.fromCharCode(s)}else{n+="&#x"+(65536+s).toString(16).substring(1)+";"}}return">"+n})}},{key:"_parse",value:function e(t){var r=t.documentElement;if(r.nodeName.toLowerCase()!=="rdf:rdf"){r=r.firstChild;while(r&&r.nodeName.toLowerCase()!=="rdf:rdf"){r=r.nextSibling}}var n=r?r.nodeName.toLowerCase():null;if(!r||n!=="rdf:rdf"||!r.hasChildNodes()){return}var i=r.childNodes;for(var a=0,s=i.length;a<s;a++){var o=i[a];if(o.nodeName.toLowerCase()!=="rdf:description"){continue}for(var u=0,l=o.childNodes.length;u<l;u++){if(o.childNodes[u].nodeName.toLowerCase()!=="#text"){var c=o.childNodes[u];var f=c.nodeName.toLowerCase();this._metadata[f]=c.textContent.trim()}}}}},{key:"get",value:function e(t){return this._metadata[t]||null}},{key:"getAll",value:function e(){return this._metadata}},{key:"has",value:function e(t){return typeof this._metadata[t]!=="undefined"}}]);return e}();t.Metadata=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){var r=[];var n=true;var i=false;var a=undefined;try{for(var s=e[Symbol.iterator](),o;!(n=(o=s.next()).done);n=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;a=e}finally{try{if(!n&&s["return"])s["return"]()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var a=Object.getPrototypeOf(t);if(a===null){return undefined}else{return e(a,r,n)}}else if("value"in i){return i.value}else{var s=i.get;if(s===undefined){return undefined}return s.call(n)}};var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();function s(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function o(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}function u(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var l={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function c(e,t){var r=e[t];return r===" "||r==="\n"||r==="\r"||r==="\t"}function f(e){for(var t=0,r=e.length;t<r;t++){if(!c(e,t)){return false}}return true}var h=function(){function e(){u(this,e)}a(e,[{key:"_resolveEntities",value:function e(t){return t.replace(/&([^;]+);/g,function(e,t){if(t.substring(0,2)==="#x"){return String.fromCharCode(parseInt(t.substring(2),16))}else if(t.substring(0,1)==="#"){return String.fromCharCode(parseInt(t.substring(1),10))}switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(t)})}},{key:"_parseContent",value:function e(t,r){var n=r,i=void 0,a=[];function s(){while(n<t.length&&c(t,n)){++n}}while(n<t.length&&!c(t,n)&&t[n]!==">"&&t[n]!=="/"){++n}i=t.substring(r,n);s();while(n<t.length&&t[n]!==">"&&t[n]!=="/"&&t[n]!=="?"){s();var o="",u="";while(n<t.length&&!c(t,n)&&t[n]!=="="){o+=t[n];++n}s();if(t[n]!=="="){return null}++n;s();var l=t[n];if(l!=='"'&&l!=="'"){return null}var f=t.indexOf(l,++n);if(f<0){return null}u=t.substring(n,f);a.push({name:o,value:this._resolveEntities(u)});n=f+1;s()}return{name:i,attributes:a,parsed:n-r}}},{key:"_parseProcessingInstruction",value:function e(t,r){var n=r,i=void 0,a=void 0;function s(){while(n<t.length&&c(t,n)){++n}}while(n<t.length&&!c(t,n)&&t[n]!==">"&&t[n]!=="/"){++n}i=t.substring(r,n);s();var o=n;while(n<t.length&&(t[n]!=="?"||t[n+1]!==">")){++n}a=t.substring(o,n);return{name:i,value:a,parsed:n-r}}},{key:"parseXml",value:function e(t){var r=0;while(r<t.length){var n=t[r];var i=r;if(n==="<"){++i;var a=t[i];var s=void 0;switch(a){case"/":++i;s=t.indexOf(">",i);if(s<0){this.onError(l.UnterminatedElement);return}this.onEndElement(t.substring(i,s));i=s+1;break;case"?":++i;var o=this._parseProcessingInstruction(t,i);if(t.substring(i+o.parsed,i+o.parsed+2)!=="?>"){this.onError(l.UnterminatedXmlDeclaration);return}this.onPi(o.name,o.value);i+=o.parsed+2;break;case"!":if(t.substring(i+1,i+3)==="--"){s=t.indexOf("--\x3e",i+3);if(s<0){this.onError(l.UnterminatedComment);return}this.onComment(t.substring(i+3,s));i=s+3}else if(t.substring(i+1,i+8)==="[CDATA["){s=t.indexOf("]]>",i+8);if(s<0){this.onError(l.UnterminatedCdat);return}this.onCdata(t.substring(i+8,s));i=s+3}else if(t.substring(i+1,i+8)==="DOCTYPE"){var u=t.indexOf("[",i+8);var c=false;s=t.indexOf(">",i+8);if(s<0){this.onError(l.UnterminatedDoctypeDeclaration);return}if(u>0&&s>u){s=t.indexOf("]>",i+8);if(s<0){this.onError(l.UnterminatedDoctypeDeclaration);return}c=true}var f=t.substring(i+8,s+(c?1:0));this.onDoctype(f);i=s+(c?2:1)}else{this.onError(l.MalformedElement);return}break;default:var h=this._parseContent(t,i);if(h===null){this.onError(l.MalformedElement);return}var d=false;if(t.substring(i+h.parsed,i+h.parsed+2)==="/>"){d=true}else if(t.substring(i+h.parsed,i+h.parsed+1)!==">"){this.onError(l.UnterminatedElement);return}this.onBeginElement(h.name,h.attributes,d);i+=h.parsed+(d?2:1);break}}else{while(i<t.length&&t[i]!=="<"){i++}var v=t.substring(r,i);this.onText(this._resolveEntities(v))}r=i}}},{key:"onResolveEntity",value:function e(t){return"&"+t+";"}},{key:"onPi",value:function e(t,r){}},{key:"onComment",value:function e(t){}},{key:"onCdata",value:function e(t){}},{key:"onDoctype",value:function e(t){}},{key:"onText",value:function e(t){}},{key:"onBeginElement",value:function e(t,r,n){}},{key:"onEndElement",value:function e(t){}},{key:"onError",value:function e(t){}}]);return e}();var d=function(){function e(t,r){u(this,e);this.nodeName=t;this.nodeValue=r;Object.defineProperty(this,"parentNode",{value:null,writable:true})}a(e,[{key:"hasChildNodes",value:function e(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function e(){return this.childNodes[0]}},{key:"nextSibling",get:function e(){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t+1]}},{key:"textContent",get:function e(){if(!this.childNodes){return this.nodeValue||""}return this.childNodes.map(function(e){return e.textContent}).join("")}}]);return e}();var v=function(e){o(t,e);function t(){u(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));e._currentFragment=null;e._stack=null;e._errorCode=l.NoError;return e}a(t,[{key:"parseFromString",value:function e(t){this._currentFragment=[];this._stack=[];this._errorCode=l.NoError;this.parseXml(t);if(this._errorCode!==l.NoError){return undefined}var r=n(this._currentFragment,1),i=r[0];if(!i){return undefined}return{documentElement:i}}},{key:"onResolveEntity",value:function e(r){switch(r){case"apos":return"'"}return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onResolveEntity",this).call(this,r)}},{key:"onText",value:function e(t){if(f(t)){return}var r=new d("#text",t);this._currentFragment.push(r)}},{key:"onCdata",value:function e(t){var r=new d("#text",t);this._currentFragment.push(r)}},{key:"onBeginElement",value:function e(t,r,n){var i=new d(t);i.childNodes=[];this._currentFragment.push(i);if(n){return}this._stack.push(this._currentFragment);this._currentFragment=i.childNodes}},{key:"onEndElement",value:function e(t){this._currentFragment=this._stack.pop();var r=this._currentFragment[this._currentFragment.length-1];for(var n=0,i=r.childNodes.length;n<i;n++){r.childNodes[n].parentNode=r}}},{key:"onError",value:function e(t){this._errorCode=t}}]);return t}(h);t.SimpleXMLParser=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PDFDataTransportStream=undefined;var n=r(360);var i=s(n);var a=r(332);function s(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(i,a){try{var s=t[i](a);var o=s.value}catch(e){r(e);return}if(s.done){e(o)}else{return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)})}}return n("next")})}}var u=function e(){function t(e,t){var r=this;(0,a.assert)(t);this._queuedChunks=[];var n=e.initialData;if(n&&n.length>0){var i=new Uint8Array(n).buffer;this._queuedChunks.push(i)}this._pdfDataRangeTransport=t;this._isStreamingSupported=!e.disableStream;this._isRangeSupported=!e.disableRange;this._contentLength=e.length;this._fullRequestReader=null;this._rangeReaders=[];this._pdfDataRangeTransport.addRangeListener(function(e,t){r._onReceiveData({begin:e,chunk:t})});this._pdfDataRangeTransport.addProgressListener(function(e){r._onProgress({loaded:e})});this._pdfDataRangeTransport.addProgressiveReadListener(function(e){r._onReceiveData({chunk:e})});this._pdfDataRangeTransport.transportReady()}t.prototype={_onReceiveData:function e(t){var r=new Uint8Array(t.chunk).buffer;if(t.begin===undefined){if(this._fullRequestReader){this._fullRequestReader._enqueue(r)}else{this._queuedChunks.push(r)}}else{var n=this._rangeReaders.some(function(e){if(e._begin!==t.begin){return false}e._enqueue(r);return true});(0,a.assert)(n)}},_onProgress:function e(t){if(this._rangeReaders.length>0){var r=this._rangeReaders[0];if(r.onProgress){r.onProgress({loaded:t.loaded})}}},_removeRangeReader:function e(t){var r=this._rangeReaders.indexOf(t);if(r>=0){this._rangeReaders.splice(r,1)}},getFullReader:function e(){(0,a.assert)(!this._fullRequestReader);var t=this._queuedChunks;this._queuedChunks=null;return new r(this,t)},getRangeReader:function e(t,r){var i=new n(this,t,r);this._pdfDataRangeTransport.requestDataRange(t,r);this._rangeReaders.push(i);return i},cancelAllRequests:function e(t){if(this._fullRequestReader){this._fullRequestReader.cancel(t)}var r=this._rangeReaders.slice(0);r.forEach(function(e){e.cancel(t)});this._pdfDataRangeTransport.abort()}};function r(e,t){this._stream=e;this._done=false;this._filename=null;this._queuedChunks=t||[];this._requests=[];this._headersReady=Promise.resolve();e._fullRequestReader=this;this.onProgress=null}r.prototype={_enqueue:function e(t){if(this._done){return}if(this._requests.length>0){var r=this._requests.shift();r.resolve({value:t,done:false});return}this._queuedChunks.push(t)},get headersReady(){return this._headersReady},get filename(){return this._filename},get isRangeSupported(){return this._stream._isRangeSupported},get isStreamingSupported(){return this._stream._isStreamingSupported},get contentLength(){return this._stream._contentLength},read:function(){var e=o(i.default.mark(function e(){var t,r;return i.default.wrap(function e(n){while(1){switch(n.prev=n.next){case 0:if(!(this._queuedChunks.length>0)){n.next=3;break}t=this._queuedChunks.shift();return n.abrupt("return",{value:t,done:false});case 3:if(!this._done){n.next=5;break}return n.abrupt("return",{value:undefined,done:true});case 5:r=(0,a.createPromiseCapability)();this._requests.push(r);return n.abrupt("return",r.promise);case 8:case"end":return n.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),cancel:function e(t){this._done=true;this._requests.forEach(function(e){e.resolve({value:undefined,done:true})});this._requests=[]}};function n(e,t,r){this._stream=e;this._begin=t;this._end=r;this._queuedChunk=null;this._requests=[];this._done=false;this.onProgress=null}n.prototype={_enqueue:function e(t){if(this._done){return}if(this._requests.length===0){this._queuedChunk=t}else{var r=this._requests.shift();r.resolve({value:t,done:false});this._requests.forEach(function(e){e.resolve({value:undefined,done:true})});this._requests=[]}this._done=true;this._stream._removeRangeReader(this)},get isStreamingSupported(){return false},read:function(){var e=o(i.default.mark(function e(){var t,r;return i.default.wrap(function e(n){while(1){switch(n.prev=n.next){case 0:if(!this._queuedChunk){n.next=4;break}t=this._queuedChunk;this._queuedChunk=null;return n.abrupt("return",{value:t,done:false});case 4:if(!this._done){n.next=6;break}return n.abrupt("return",{value:undefined,done:true});case 6:r=(0,a.createPromiseCapability)();this._requests.push(r);return n.abrupt("return",r.promise);case 9:case"end":return n.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),cancel:function e(t){this._done=true;this._requests.forEach(function(e){e.resolve({value:undefined,done:true})});this._requests=[];this._stream._removeRangeReader(this)}};return t}();t.PDFDataTransportStream=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WebGLContext=undefined;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var i=r(332);function a(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var s=function(){function e(t){var r=t.enable,n=r===undefined?false:r;a(this,e);this._enabled=n===true}n(e,[{key:"composeSMask",value:function e(t){var r=t.layer,n=t.mask,i=t.properties;return o.composeSMask(r,n,i)}},{key:"drawFigures",value:function e(t){var r=t.width,n=t.height,i=t.backgroundColor,a=t.figures,s=t.context;return o.drawFigures(r,n,i,a,s)}},{key:"clear",value:function e(){o.cleanup()}},{key:"isEnabled",get:function e(){var t=this._enabled;if(t){t=o.tryInitGL()}return(0,i.shadow)(this,"isEnabled",t)}}]);return e}();var o=function e(){function t(e,t,r){var n=e.createShader(r);e.shaderSource(n,t);e.compileShader(n);var i=e.getShaderParameter(n,e.COMPILE_STATUS);if(!i){var a=e.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+a)}return n}function r(e,r){return t(e,r,e.VERTEX_SHADER)}function n(e,r){return t(e,r,e.FRAGMENT_SHADER)}function i(e,t){var r=e.createProgram();for(var n=0,i=t.length;n<i;++n){e.attachShader(r,t[n])}e.linkProgram(r);var a=e.getProgramParameter(r,e.LINK_STATUS);if(!a){var s=e.getProgramInfoLog(r);throw new Error("Error during program linking: "+s)}return r}function a(e,t,r){e.activeTexture(r);var n=e.createTexture();e.bindTexture(e.TEXTURE_2D,n);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t);return n}var s,o;function u(){if(s){return}o=document.createElement("canvas");s=o.getContext("webgl",{premultipliedalpha:false})}var l="  attribute vec2 a_position;                                      attribute vec2 a_texCoord;                                                                                                      uniform vec2 u_resolution;                                                                                                      varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;       gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_texCoord = a_texCoord;                                      }                                                             ";var c="  precision mediump float;                                                                                                        uniform vec4 u_backdrop;                                        uniform int u_subtype;                                          uniform sampler2D u_image;                                      uniform sampler2D u_mask;                                                                                                       varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec4 imageColor = texture2D(u_image, v_texCoord);               vec4 maskColor = texture2D(u_mask, v_texCoord);                 if (u_backdrop.a > 0.0) {                                         maskColor.rgb = maskColor.rgb * maskColor.a +                                   u_backdrop.rgb * (1.0 - maskColor.a);         }                                                               float lum;                                                      if (u_subtype == 0) {                                             lum = maskColor.a;                                            } else {                                                          lum = maskColor.r * 0.3 + maskColor.g * 0.59 +                        maskColor.b * 0.11;                                     }                                                               imageColor.a *= lum;                                            imageColor.rgb *= imageColor.a;                                 gl_FragColor = imageColor;                                    }                                                             ";var f=null;function h(){var e,t;u();e=o;o=null;t=s;s=null;var a=r(t,l);var h=n(t,c);var d=i(t,[a,h]);t.useProgram(d);var v={};v.gl=t;v.canvas=e;v.resolutionLocation=t.getUniformLocation(d,"u_resolution");v.positionLocation=t.getAttribLocation(d,"a_position");v.backdropLocation=t.getUniformLocation(d,"u_backdrop");v.subtypeLocation=t.getUniformLocation(d,"u_subtype");var p=t.getAttribLocation(d,"a_texCoord");var m=t.getUniformLocation(d,"u_image");var g=t.getUniformLocation(d,"u_mask");var y=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,y);t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),t.STATIC_DRAW);t.enableVertexAttribArray(p);t.vertexAttribPointer(p,2,t.FLOAT,false,0,0);t.uniform1i(m,0);t.uniform1i(g,1);f=v}function d(e,t,r){var n=e.width,i=e.height;if(!f){h()}var s=f,o=s.canvas,u=s.gl;o.width=n;o.height=i;u.viewport(0,0,u.drawingBufferWidth,u.drawingBufferHeight);u.uniform2f(s.resolutionLocation,n,i);if(r.backdrop){u.uniform4f(s.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1)}else{u.uniform4f(s.resolutionLocation,0,0,0,0)}u.uniform1i(s.subtypeLocation,r.subtype==="Luminosity"?1:0);var l=a(u,e,u.TEXTURE0);var c=a(u,t,u.TEXTURE1);var d=u.createBuffer();u.bindBuffer(u.ARRAY_BUFFER,d);u.bufferData(u.ARRAY_BUFFER,new Float32Array([0,0,n,0,0,i,0,i,n,0,n,i]),u.STATIC_DRAW);u.enableVertexAttribArray(s.positionLocation);u.vertexAttribPointer(s.positionLocation,2,u.FLOAT,false,0,0);u.clearColor(0,0,0,0);u.enable(u.BLEND);u.blendFunc(u.ONE,u.ONE_MINUS_SRC_ALPHA);u.clear(u.COLOR_BUFFER_BIT);u.drawArrays(u.TRIANGLES,0,6);u.flush();u.deleteTexture(l);u.deleteTexture(c);u.deleteBuffer(d);return o}var v="  attribute vec2 a_position;                                      attribute vec3 a_color;                                                                                                         uniform vec2 u_resolution;                                      uniform vec2 u_scale;                                           uniform vec2 u_offset;                                                                                                          varying vec4 v_color;                                                                                                           void main() {                                                     vec2 position = (a_position + u_offset) * u_scale;              vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0;         gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_color = vec4(a_color / 255.0, 1.0);                         }                                                             ";var p="  precision mediump float;                                                                                                        varying vec4 v_color;                                                                                                           void main() {                                                     gl_FragColor = v_color;                                       }                                                             ";var m=null;function g(){var e,t;u();e=o;o=null;t=s;s=null;var a=r(t,v);var l=n(t,p);var c=i(t,[a,l]);t.useProgram(c);var f={};f.gl=t;f.canvas=e;f.resolutionLocation=t.getUniformLocation(c,"u_resolution");f.scaleLocation=t.getUniformLocation(c,"u_scale");f.offsetLocation=t.getUniformLocation(c,"u_offset");f.positionLocation=t.getAttribLocation(c,"a_position");f.colorLocation=t.getAttribLocation(c,"a_color");m=f}function y(e,t,r,n,i){if(!m){g()}var a=m,s=a.canvas,o=a.gl;s.width=e;s.height=t;o.viewport(0,0,o.drawingBufferWidth,o.drawingBufferHeight);o.uniform2f(a.resolutionLocation,e,t);var u=0;var l,c,f;for(l=0,c=n.length;l<c;l++){switch(n[l].type){case"lattice":f=n[l].coords.length/n[l].verticesPerRow|0;u+=(f-1)*(n[l].verticesPerRow-1)*6;break;case"triangles":u+=n[l].coords.length;break}}var h=new Float32Array(u*2);var d=new Uint8Array(u*3);var v=i.coords,p=i.colors;var y=0,b=0;for(l=0,c=n.length;l<c;l++){var _=n[l],S=_.coords,A=_.colors;switch(_.type){case"lattice":var w=_.verticesPerRow;f=S.length/w|0;for(var x=1;x<f;x++){var k=x*w+1;for(var P=1;P<w;P++,k++){h[y]=v[S[k-w-1]];h[y+1]=v[S[k-w-1]+1];h[y+2]=v[S[k-w]];h[y+3]=v[S[k-w]+1];h[y+4]=v[S[k-1]];h[y+5]=v[S[k-1]+1];d[b]=p[A[k-w-1]];d[b+1]=p[A[k-w-1]+1];d[b+2]=p[A[k-w-1]+2];d[b+3]=p[A[k-w]];d[b+4]=p[A[k-w]+1];d[b+5]=p[A[k-w]+2];d[b+6]=p[A[k-1]];d[b+7]=p[A[k-1]+1];d[b+8]=p[A[k-1]+2];h[y+6]=h[y+2];h[y+7]=h[y+3];h[y+8]=h[y+4];h[y+9]=h[y+5];h[y+10]=v[S[k]];h[y+11]=v[S[k]+1];d[b+9]=d[b+3];d[b+10]=d[b+4];d[b+11]=d[b+5];d[b+12]=d[b+6];d[b+13]=d[b+7];d[b+14]=d[b+8];d[b+15]=p[A[k]];d[b+16]=p[A[k]+1];d[b+17]=p[A[k]+2];y+=12;b+=18}}break;case"triangles":for(var C=0,R=S.length;C<R;C++){h[y]=v[S[C]];h[y+1]=v[S[C]+1];d[b]=p[A[C]];d[b+1]=p[A[C]+1];d[b+2]=p[A[C]+2];y+=2;b+=3}break}}if(r){o.clearColor(r[0]/255,r[1]/255,r[2]/255,1)}else{o.clearColor(0,0,0,0)}o.clear(o.COLOR_BUFFER_BIT);var E=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,E);o.bufferData(o.ARRAY_BUFFER,h,o.STATIC_DRAW);o.enableVertexAttribArray(a.positionLocation);o.vertexAttribPointer(a.positionLocation,2,o.FLOAT,false,0,0);var T=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,T);o.bufferData(o.ARRAY_BUFFER,d,o.STATIC_DRAW);o.enableVertexAttribArray(a.colorLocation);o.vertexAttribPointer(a.colorLocation,3,o.UNSIGNED_BYTE,false,0,0);o.uniform2f(a.scaleLocation,i.scaleX,i.scaleY);o.uniform2f(a.offsetLocation,i.offsetX,i.offsetY);o.drawArrays(o.TRIANGLES,0,u);o.flush();o.deleteBuffer(E);o.deleteBuffer(T);return s}return{tryInitGL:function e(){try{u();return!!s}catch(e){}return false},composeSMask:d,drawFigures:y,cleanup:function e(){if(f&&f.canvas){f.canvas.width=0;f.canvas.height=0}if(m&&m.canvas){m.canvas.width=0;m.canvas.height=0}f=null;m=null}}}();t.WebGLContext=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.renderTextLayer=undefined;var n=r(332);var i=r(334);var a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var o=function e(){var t=1e5;var r=/\S/;function i(e){return!r.test(e)}var s=["left: ",0,"px; top: ",0,"px; font-size: ",0,"px; font-family: ","",";"];function o(e,t,r){var a=document.createElement("div");var o={style:null,angle:0,canvasWidth:0,isWhitespace:false,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};e._textDivs.push(a);if(i(t.str)){o.isWhitespace=true;e._textDivProperties.set(a,o);return}var u=n.Util.transform(e._viewport.transform,t.transform);var l=Math.atan2(u[1],u[0]);var c=r[t.fontName];if(c.vertical){l+=Math.PI/2}var f=Math.sqrt(u[2]*u[2]+u[3]*u[3]);var h=f;if(c.ascent){h=c.ascent*h}else if(c.descent){h=(1+c.descent)*h}var d;var v;if(l===0){d=u[4];v=u[5]-h}else{d=u[4]+h*Math.sin(l);v=u[5]-h*Math.cos(l)}s[1]=d;s[3]=v;s[5]=f;s[7]=c.fontFamily;o.style=s.join("");a.setAttribute("style",o.style);a.textContent=t.str;if(e._fontInspectorEnabled){a.dataset.fontName=t.fontName}if(l!==0){o.angle=l*(180/Math.PI)}if(t.str.length>1){if(c.vertical){o.canvasWidth=t.height*e._viewport.scale}else{o.canvasWidth=t.width*e._viewport.scale}}e._textDivProperties.set(a,o);if(e._textContentStream){e._layoutText(a)}if(e._enhanceTextSelection){var p=1,m=0;if(l!==0){p=Math.cos(l);m=Math.sin(l)}var g=(c.vertical?t.height:t.width)*e._viewport.scale;var y=f;var b,_;if(l!==0){b=[p,m,-m,p,d,v];_=n.Util.getAxialAlignedBoundingBox([0,0,g,y],b)}else{_=[d,v,d+g,v+y]}e._bounds.push({left:_[0],top:_[1],right:_[2],bottom:_[3],div:a,size:[g,y],m:b})}}function u(e){if(e._canceled){return}var r=e._textDivs;var n=e._capability;var i=r.length;if(i>t){e._renderingDone=true;n.resolve();return}if(!e._textContentStream){for(var a=0;a<i;a++){e._layoutText(r[a])}}e._renderingDone=true;n.resolve()}function l(e){var t=e._bounds;var r=e._viewport;var i=c(r.width,r.height,t);for(var a=0;a<i.length;a++){var s=t[a].div;var o=e._textDivProperties.get(s);if(o.angle===0){o.paddingLeft=t[a].left-i[a].left;o.paddingTop=t[a].top-i[a].top;o.paddingRight=i[a].right-t[a].right;o.paddingBottom=i[a].bottom-t[a].bottom;e._textDivProperties.set(s,o);continue}var u=i[a],l=t[a];var f=l.m,h=f[0],d=f[1];var v=[[0,0],[0,l.size[1]],[l.size[0],0],l.size];var p=new Float64Array(64);v.forEach(function(e,t){var r=n.Util.applyTransform(e,f);p[t+0]=h&&(u.left-r[0])/h;p[t+4]=d&&(u.top-r[1])/d;p[t+8]=h&&(u.right-r[0])/h;p[t+12]=d&&(u.bottom-r[1])/d;p[t+16]=d&&(u.left-r[0])/-d;p[t+20]=h&&(u.top-r[1])/h;p[t+24]=d&&(u.right-r[0])/-d;p[t+28]=h&&(u.bottom-r[1])/h;p[t+32]=h&&(u.left-r[0])/-h;p[t+36]=d&&(u.top-r[1])/-d;p[t+40]=h&&(u.right-r[0])/-h;p[t+44]=d&&(u.bottom-r[1])/-d;p[t+48]=d&&(u.left-r[0])/d;p[t+52]=h&&(u.top-r[1])/-h;p[t+56]=d&&(u.right-r[0])/d;p[t+60]=h&&(u.bottom-r[1])/-h});var m=function e(t,r,n){var i=0;for(var a=0;a<n;a++){var s=t[r++];if(s>0){i=i?Math.min(s,i):s}}return i};var g=1+Math.min(Math.abs(h),Math.abs(d));o.paddingLeft=m(p,32,16)/g;o.paddingTop=m(p,48,16)/g;o.paddingRight=m(p,0,16)/g;o.paddingBottom=m(p,16,16)/g;e._textDivProperties.set(s,o)}}function c(e,t,r){var n=r.map(function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:undefined,x2New:undefined}});f(e,n);var i=new Array(r.length);n.forEach(function(e){var t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}});r.map(function(t,r){var a=i[r],s=n[r];s.x1=t.top;s.y1=e-a.right;s.x2=t.bottom;s.y2=e-a.left;s.index=r;s.x1New=undefined;s.x2New=undefined});f(t,n);n.forEach(function(e){var t=e.index;i[t].top=e.x1New;i[t].bottom=e.x2New});return i}function f(e,t){t.sort(function(e,t){return e.x1-t.x1||e.index-t.index});var r={x1:-Infinity,y1:-Infinity,x2:0,y2:Infinity,index:-1,x1New:0,x2New:0};var n=[{start:-Infinity,end:Infinity,boundary:r}];t.forEach(function(e){var t=0;while(t<n.length&&n[t].end<=e.y1){t++}var r=n.length-1;while(r>=0&&n[r].start>=e.y2){r--}var i,a;var s,o,u=-Infinity;for(s=t;s<=r;s++){i=n[s];a=i.boundary;var l;if(a.x2>e.x1){l=a.index>e.index?a.x1New:e.x1}else if(a.x2New===undefined){l=(a.x2+e.x1)/2}else{l=a.x2New}if(l>u){u=l}}e.x1New=u;for(s=t;s<=r;s++){i=n[s];a=i.boundary;if(a.x2New===undefined){if(a.x2>e.x1){if(a.index>e.index){a.x2New=a.x2}}else{a.x2New=u}}else if(a.x2New>u){a.x2New=Math.max(u,a.x2)}}var c=[],f=null;for(s=t;s<=r;s++){i=n[s];a=i.boundary;var h=a.x2>e.x2?a:e;if(f===h){c[c.length-1].end=i.end}else{c.push({start:i.start,end:i.end,boundary:h});f=h}}if(n[t].start<e.y1){c[0].start=e.y1;c.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})}if(e.y2<n[r].end){c[c.length-1].end=e.y2;c.push({start:e.y2,end:n[r].end,boundary:n[r].boundary})}for(s=t;s<=r;s++){i=n[s];a=i.boundary;if(a.x2New!==undefined){continue}var d=false;for(o=t-1;!d&&o>=0&&n[o].start>=a.y1;o--){d=n[o].boundary===a}for(o=r+1;!d&&o<n.length&&n[o].end<=a.y2;o++){d=n[o].boundary===a}for(o=0;!d&&o<c.length;o++){d=c[o].boundary===a}if(!d){a.x2New=u}}Array.prototype.splice.apply(n,[t,r-t+1].concat(c))});n.forEach(function(t){var r=t.boundary;if(r.x2New===undefined){r.x2New=Math.max(e,r.x2)}})}function h(e){var t=e.textContent,r=e.textContentStream,i=e.container,s=e.viewport,o=e.textDivs,u=e.textContentItemsStr,l=e.enhanceTextSelection;this._textContent=t;this._textContentStream=r;this._container=i;this._viewport=s;this._textDivs=o||[];this._textContentItemsStr=u||[];this._enhanceTextSelection=!!l;this._fontInspectorEnabled=!!(a.default.FontInspector&&a.default.FontInspector.enabled);this._reader=null;this._layoutTextLastFontSize=null;this._layoutTextLastFontFamily=null;this._layoutTextCtx=null;this._textDivProperties=new WeakMap;this._renderingDone=false;this._canceled=false;this._capability=(0,n.createPromiseCapability)();this._renderTimer=null;this._bounds=[]}h.prototype={get promise(){return this._capability.promise},cancel:function e(){if(this._reader){this._reader.cancel(new n.AbortException("text layer task cancelled"));this._reader=null}this._canceled=true;if(this._renderTimer!==null){clearTimeout(this._renderTimer);this._renderTimer=null}this._capability.reject("canceled")},_processItems:function e(t,r){for(var n=0,i=t.length;n<i;n++){this._textContentItemsStr.push(t[n].str);o(this,t[n],r)}},_layoutText:function e(t){var r=this._container;var n=this._textDivProperties.get(t);if(n.isWhitespace){return}var i=t.style.fontSize;var a=t.style.fontFamily;if(i!==this._layoutTextLastFontSize||a!==this._layoutTextLastFontFamily){this._layoutTextCtx.font=i+" "+a;this._layoutTextLastFontSize=i;this._layoutTextLastFontFamily=a}var s=this._layoutTextCtx.measureText(t.textContent).width;var o="";if(n.canvasWidth!==0&&s>0){n.scale=n.canvasWidth/s;o="scaleX("+n.scale+")"}if(n.angle!==0){o="rotate("+n.angle+"deg) "+o}if(o!==""){n.originalTransform=o;t.style.transform=o}this._textDivProperties.set(t,n);r.appendChild(t)},_render:function e(t){var r=this;var i=(0,n.createPromiseCapability)();var a=Object.create(null);var s=document.createElement("canvas");s.mozOpaque=true;this._layoutTextCtx=s.getContext("2d",{alpha:false});if(this._textContent){var o=this._textContent.items;var l=this._textContent.styles;this._processItems(o,l);i.resolve()}else if(this._textContentStream){var c=function e(){r._reader.read().then(function(t){var n=t.value,s=t.done;if(s){i.resolve();return}Object.assign(a,n.styles);r._processItems(n.items,a);e()},i.reject)};this._reader=this._textContentStream.getReader();c()}else{throw new Error('Neither "textContent" nor "textContentStream"'+" parameters specified.")}i.promise.then(function(){a=null;if(!t){u(r)}else{r._renderTimer=setTimeout(function(){u(r);r._renderTimer=null},t)}},this._capability.reject)},expandTextDivs:function e(t){if(!this._enhanceTextSelection||!this._renderingDone){return}if(this._bounds!==null){l(this);this._bounds=null}for(var r=0,n=this._textDivs.length;r<n;r++){var i=this._textDivs[r];var a=this._textDivProperties.get(i);if(a.isWhitespace){continue}if(t){var s="",o="";if(a.scale!==1){s="scaleX("+a.scale+")"}if(a.angle!==0){s="rotate("+a.angle+"deg) "+s}if(a.paddingLeft!==0){o+=" padding-left: "+a.paddingLeft/a.scale+"px;";s+=" translateX("+-a.paddingLeft/a.scale+"px)"}if(a.paddingTop!==0){o+=" padding-top: "+a.paddingTop+"px;";s+=" translateY("+-a.paddingTop+"px)"}if(a.paddingRight!==0){o+=" padding-right: "+a.paddingRight/a.scale+"px;"}if(a.paddingBottom!==0){o+=" padding-bottom: "+a.paddingBottom+"px;"}if(o!==""){i.setAttribute("style",a.style+o)}if(s!==""){i.style.transform=s}}else{i.style.padding=0;i.style.transform=a.originalTransform||""}}}};function d(e){var t=new h({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});t._render(e.timeout);return t}return d}();t.renderTextLayer=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnnotationLayer=undefined;var n=function e(t,r,n){if(t===null)t=Function.prototype;var i=Object.getOwnPropertyDescriptor(t,r);if(i===undefined){var a=Object.getPrototypeOf(t);if(a===null){return undefined}else{return e(a,r,n)}}else if("value"in i){return i.value}else{var s=i.get;if(s===undefined){return undefined}return s.call(n)}};var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var a=r(353);var s=r(332);function o(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function u(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var c=function(){function e(){l(this,e)}i(e,null,[{key:"create",value:function e(t){var r=t.data.annotationType;switch(r){case s.AnnotationType.LINK:return new h(t);case s.AnnotationType.TEXT:return new d(t);case s.AnnotationType.WIDGET:var n=t.data.fieldType;switch(n){case"Tx":return new p(t);case"Btn":if(t.data.radioButton){return new g(t)}else if(t.data.checkBox){return new m(t)}return new y(t);case"Ch":return new b(t)}return new v(t);case s.AnnotationType.POPUP:return new _(t);case s.AnnotationType.LINE:return new A(t);case s.AnnotationType.SQUARE:return new w(t);case s.AnnotationType.CIRCLE:return new x(t);case s.AnnotationType.POLYLINE:return new k(t);case s.AnnotationType.INK:return new C(t);case s.AnnotationType.POLYGON:return new P(t);case s.AnnotationType.HIGHLIGHT:return new R(t);case s.AnnotationType.UNDERLINE:return new E(t);case s.AnnotationType.SQUIGGLY:return new T(t);case s.AnnotationType.STRIKEOUT:return new O(t);case s.AnnotationType.STAMP:return new I(t);case s.AnnotationType.FILEATTACHMENT:return new F(t);default:return new f(t)}}}]);return e}();var f=function(){function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;l(this,e);this.isRenderable=r;this.data=t.data;this.layer=t.layer;this.page=t.page;this.viewport=t.viewport;this.linkService=t.linkService;this.downloadManager=t.downloadManager;this.imageResourcesPath=t.imageResourcesPath;this.renderInteractiveForms=t.renderInteractiveForms;this.svgFactory=t.svgFactory;if(r){this.container=this._createContainer(n)}}i(e,[{key:"_createContainer",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var r=this.data,n=this.page,i=this.viewport;var a=document.createElement("section");var o=r.rect[2]-r.rect[0];var u=r.rect[3]-r.rect[1];a.setAttribute("data-annotation-id",r.id);var l=s.Util.normalizeRect([r.rect[0],n.view[3]-r.rect[1]+n.view[1],r.rect[2],n.view[3]-r.rect[3]+n.view[1]]);a.style.transform="matrix("+i.transform.join(",")+")";a.style.transformOrigin=-l[0]+"px "+-l[1]+"px";if(!t&&r.borderStyle.width>0){a.style.borderWidth=r.borderStyle.width+"px";if(r.borderStyle.style!==s.AnnotationBorderStyleType.UNDERLINE){o=o-2*r.borderStyle.width;u=u-2*r.borderStyle.width}var c=r.borderStyle.horizontalCornerRadius;var f=r.borderStyle.verticalCornerRadius;if(c>0||f>0){var h=c+"px / "+f+"px";a.style.borderRadius=h}switch(r.borderStyle.style){case s.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case s.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case s.AnnotationBorderStyleType.BEVELED:(0,s.warn)("Unimplemented border style: beveled");break;case s.AnnotationBorderStyleType.INSET:(0,s.warn)("Unimplemented border style: inset");break;case s.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid";break;default:break}if(r.color){a.style.borderColor=s.Util.makeCssRgb(r.color[0]|0,r.color[1]|0,r.color[2]|0)}else{a.style.borderWidth=0}}a.style.left=l[0]+"px";a.style.top=l[1]+"px";a.style.width=o+"px";a.style.height=u+"px";return a}},{key:"_createPopup",value:function e(t,r,n){if(!r){r=document.createElement("div");r.style.height=t.style.height;r.style.width=t.style.width;t.appendChild(r)}var i=new S({container:t,trigger:r,color:n.color,title:n.title,contents:n.contents,hideWrapper:true});var a=i.render();a.style.left=t.style.width;t.appendChild(a)}},{key:"render",value:function e(){(0,s.unreachable)("Abstract method `AnnotationElement.render` called")}}]);return e}();var h=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.url||e.data.dest||e.data.action);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}i(t,[{key:"render",value:function e(){this.container.className="linkAnnotation";var t=this.data,r=this.linkService;var n=document.createElement("a");(0,a.addLinkAttributes)(n,{url:t.url,target:t.newWindow?a.LinkTarget.BLANK:r.externalLinkTarget,rel:r.externalLinkRel});if(!t.url){if(t.action){this._bindNamedAction(n,t.action)}else{this._bindLink(n,t.dest)}}this.container.appendChild(n);return this.container}},{key:"_bindLink",value:function e(t,r){var n=this;t.href=this.linkService.getDestinationHash(r);t.onclick=function(){if(r){n.linkService.navigateTo(r)}return false};if(r){t.className="internalLink"}}},{key:"_bindNamedAction",value:function e(t,r){var n=this;t.href=this.linkService.getAnchorUrl("");t.onclick=function(){n.linkService.executeNamedAction(r);return false};t.className="internalLink"}}]);return t}(f);var d=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}i(t,[{key:"render",value:function e(){this.container.className="textAnnotation";var t=document.createElement("img");t.style.height=this.container.style.height;t.style.width=this.container.style.width;t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg";t.alt="[{{type}} Annotation]";t.dataset.l10nId="text_annotation_type";t.dataset.l10nArgs=JSON.stringify({type:this.data.name});if(!this.data.hasPopup){this._createPopup(this.container,t,this.data)}this.container.appendChild(t);return this.container}}]);return t}(f);var v=function(e){u(t,e);function t(){l(this,t);return o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}i(t,[{key:"render",value:function e(){return this.container}}]);return t}(f);var p=function(e){u(t,e);function t(e){l(this,t);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}i(t,[{key:"render",value:function e(){var t=["left","center","right"];this.container.className="textWidgetAnnotation";var r=null;if(this.renderInteractiveForms){if(this.data.multiLine){r=document.createElement("textarea");r.textContent=this.data.fieldValue}else{r=document.createElement("input");r.type="text";r.setAttribute("value",this.data.fieldValue)}r.disabled=this.data.readOnly;if(this.data.maxLen!==null){r.maxLength=this.data.maxLen}if(this.data.comb){var n=this.data.rect[2]-this.data.rect[0];var i=n/this.data.maxLen;r.classList.add("comb");r.style.letterSpacing="calc("+i+"px - 1ch)"}}else{r=document.createElement("div");r.textContent=this.data.fieldValue;r.style.verticalAlign="middle";r.style.display="table-cell";var a=null;if(this.data.fontRefName){a=this.page.commonObjs.getData(this.data.fontRefName)}this._setTextStyle(r,a)}if(this.data.textAlignment!==null){r.style.textAlign=t[this.data.textAlignment]}this.container.appendChild(r);return this.container}},{key:"_setTextStyle",value:function e(t,r){var n=t.style;n.fontSize=this.data.fontSize+"px";n.direction=this.data.fontDirection<0?"rtl":"ltr";if(!r){return}n.fontWeight=r.black?r.bold?"900":"bold":r.bold?"bold":"normal";n.fontStyle=r.italic?"italic":"normal";var i=r.loadedName?'"'+r.loadedName+'", ':"";var a=r.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+a}}]);return t}(v);var m=function(e){u(t,e);function t(e){l(this,t);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}i(t,[{key:"render",value:function e(){this.container.className="buttonWidgetAnnotation checkBox";var t=document.createElement("input");t.disabled=this.data.readOnly;t.type="checkbox";if(this.data.fieldValue&&this.data.fieldValue!=="Off"){t.setAttribute("checked",true)}this.container.appendChild(t);return this.container}}]);return t}(v);var g=function(e){u(t,e);function t(e){l(this,t);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}i(t,[{key:"render",value:function e(){this.container.className="buttonWidgetAnnotation radioButton";var t=document.createElement("input");t.disabled=this.data.readOnly;t.type="radio";t.name=this.data.fieldName;if(this.data.fieldValue===this.data.buttonValue){t.setAttribute("checked",true)}this.container.appendChild(t);return this.container}}]);return t}(v);var y=function(e){u(t,e);function t(){l(this,t);return o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}i(t,[{key:"render",value:function e(){var r=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this);r.className="buttonWidgetAnnotation pushButton";return r}}]);return t}(h);var b=function(e){u(t,e);function t(e){l(this,t);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}i(t,[{key:"render",value:function e(){this.container.className="choiceWidgetAnnotation";var t=document.createElement("select");t.disabled=this.data.readOnly;if(!this.data.combo){t.size=this.data.options.length;if(this.data.multiSelect){t.multiple=true}}for(var r=0,n=this.data.options.length;r<n;r++){var i=this.data.options[r];var a=document.createElement("option");a.textContent=i.displayValue;a.value=i.exportValue;if(this.data.fieldValue.includes(i.displayValue)){a.setAttribute("selected",true)}t.appendChild(a)}this.container.appendChild(t);return this.container}}]);return t}(v);var _=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}i(t,[{key:"render",value:function e(){var t=["Line","Square","Circle","PolyLine","Polygon","Ink"];this.container.className="popupAnnotation";if(t.includes(this.data.parentType)){return this.container}var r='[data-annotation-id="'+this.data.parentId+'"]';var n=this.layer.querySelector(r);if(!n){return this.container}var i=new S({container:this.container,trigger:n,color:this.data.color,title:this.data.title,contents:this.data.contents});var a=parseFloat(n.style.left);var s=parseFloat(n.style.width);this.container.style.transformOrigin=-(a+s)+"px -"+n.style.top;this.container.style.left=a+s+"px";this.container.appendChild(i.render());return this.container}}]);return t}(f);var S=function(){function e(t){l(this,e);this.container=t.container;this.trigger=t.trigger;this.color=t.color;this.title=t.title;this.contents=t.contents;this.hideWrapper=t.hideWrapper||false;this.pinned=false}i(e,[{key:"render",value:function e(){var t=.7;var r=document.createElement("div");r.className="popupWrapper";this.hideElement=this.hideWrapper?r:this.container;this.hideElement.setAttribute("hidden",true);var n=document.createElement("div");n.className="popup";var i=this.color;if(i){var a=t*(255-i[0])+i[0];var o=t*(255-i[1])+i[1];var u=t*(255-i[2])+i[2];n.style.backgroundColor=s.Util.makeCssRgb(a|0,o|0,u|0)}var l=this._formatContents(this.contents);var c=document.createElement("h1");c.textContent=this.title;this.trigger.addEventListener("click",this._toggle.bind(this));this.trigger.addEventListener("mouseover",this._show.bind(this,false));this.trigger.addEventListener("mouseout",this._hide.bind(this,false));n.addEventListener("click",this._hide.bind(this,true));n.appendChild(c);n.appendChild(l);r.appendChild(n);return r}},{key:"_formatContents",value:function e(t){var r=document.createElement("p");var n=t.split(/(?:\r\n?|\n)/);for(var i=0,a=n.length;i<a;++i){var s=n[i];r.appendChild(document.createTextNode(s));if(i<a-1){r.appendChild(document.createElement("br"))}}return r}},{key:"_toggle",value:function e(){if(this.pinned){this._hide(true)}else{this._show(true)}}},{key:"_show",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(t){this.pinned=true}if(this.hideElement.hasAttribute("hidden")){this.hideElement.removeAttribute("hidden");this.container.style.zIndex+=1}}},{key:"_hide",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;if(t){this.pinned=false}if(!this.hideElement.hasAttribute("hidden")&&!this.pinned){this.hideElement.setAttribute("hidden",true);this.container.style.zIndex-=1}}}]);return e}();var A=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true))}i(t,[{key:"render",value:function e(){this.container.className="lineAnnotation";var t=this.data;var r=t.rect[2]-t.rect[0];var n=t.rect[3]-t.rect[1];var i=this.svgFactory.create(r,n);var a=this.svgFactory.createElement("svg:line");a.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]);a.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]);a.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]);a.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]);a.setAttribute("stroke-width",t.borderStyle.width);a.setAttribute("stroke","transparent");i.appendChild(a);this.container.append(i);this._createPopup(this.container,a,t);return this.container}}]);return t}(f);var w=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true))}i(t,[{key:"render",value:function e(){this.container.className="squareAnnotation";var t=this.data;var r=t.rect[2]-t.rect[0];var n=t.rect[3]-t.rect[1];var i=this.svgFactory.create(r,n);var a=t.borderStyle.width;var s=this.svgFactory.createElement("svg:rect");s.setAttribute("x",a/2);s.setAttribute("y",a/2);s.setAttribute("width",r-a);s.setAttribute("height",n-a);s.setAttribute("stroke-width",a);s.setAttribute("stroke","transparent");s.setAttribute("fill","none");i.appendChild(s);this.container.append(i);this._createPopup(this.container,s,t);return this.container}}]);return t}(f);var x=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true))}i(t,[{key:"render",value:function e(){this.container.className="circleAnnotation";var t=this.data;var r=t.rect[2]-t.rect[0];var n=t.rect[3]-t.rect[1];var i=this.svgFactory.create(r,n);var a=t.borderStyle.width;var s=this.svgFactory.createElement("svg:ellipse");s.setAttribute("cx",r/2);s.setAttribute("cy",n/2);s.setAttribute("rx",r/2-a/2);s.setAttribute("ry",n/2-a/2);s.setAttribute("stroke-width",a);s.setAttribute("stroke","transparent");s.setAttribute("fill","none");i.appendChild(s);this.container.append(i);this._createPopup(this.container,s,t);return this.container}}]);return t}(f);var k=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true));n.containerClassName="polylineAnnotation";n.svgElementName="svg:polyline";return n}i(t,[{key:"render",value:function e(){this.container.className=this.containerClassName;var t=this.data;var r=t.rect[2]-t.rect[0];var n=t.rect[3]-t.rect[1];var i=this.svgFactory.create(r,n);var a=t.vertices;var s=[];for(var o=0,u=a.length;o<u;o++){var l=a[o].x-t.rect[0];var c=t.rect[3]-a[o].y;s.push(l+","+c)}s=s.join(" ");var f=t.borderStyle.width;var h=this.svgFactory.createElement(this.svgElementName);h.setAttribute("points",s);h.setAttribute("stroke-width",f);h.setAttribute("stroke","transparent");h.setAttribute("fill","none");i.appendChild(h);this.container.append(i);this._createPopup(this.container,h,t);return this.container}}]);return t}(f);var P=function(e){u(t,e);function t(e){l(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.containerClassName="polygonAnnotation";r.svgElementName="svg:polygon";return r}return t}(k);var C=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true));n.containerClassName="inkAnnotation";n.svgElementName="svg:polyline";return n}i(t,[{key:"render",value:function e(){this.container.className=this.containerClassName;var t=this.data;var r=t.rect[2]-t.rect[0];var n=t.rect[3]-t.rect[1];var i=this.svgFactory.create(r,n);var a=t.inkLists;for(var s=0,o=a.length;s<o;s++){var u=a[s];var l=[];for(var c=0,f=u.length;c<f;c++){var h=u[c].x-t.rect[0];var d=t.rect[3]-u[c].y;l.push(h+","+d)}l=l.join(" ");var v=t.borderStyle.width;var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",l);p.setAttribute("stroke-width",v);p.setAttribute("stroke","transparent");p.setAttribute("fill","none");this._createPopup(this.container,p,t);i.appendChild(p)}this.container.append(i);return this.container}}]);return t}(f);var R=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true))}i(t,[{key:"render",value:function e(){this.container.className="highlightAnnotation";if(!this.data.hasPopup){this._createPopup(this.container,null,this.data)}return this.container}}]);return t}(f);var E=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true))}i(t,[{key:"render",value:function e(){this.container.className="underlineAnnotation";if(!this.data.hasPopup){this._createPopup(this.container,null,this.data)}return this.container}}]);return t}(f);var T=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true))}i(t,[{key:"render",value:function e(){this.container.className="squigglyAnnotation";if(!this.data.hasPopup){this._createPopup(this.container,null,this.data)}return this.container}}]);return t}(f);var O=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true))}i(t,[{key:"render",value:function e(){this.container.className="strikeoutAnnotation";if(!this.data.hasPopup){this._createPopup(this.container,null,this.data)}return this.container}}]);return t}(f);var I=function(e){u(t,e);function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,true))}i(t,[{key:"render",value:function e(){this.container.className="stampAnnotation";if(!this.data.hasPopup){this._createPopup(this.container,null,this.data)}return this.container}}]);return t}(f);var F=function(e){u(t,e);function t(e){l(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,true));var n=r.data.file,i=n.filename,u=n.content;r.filename=(0,a.getFilenameFromUrl)(i);r.content=u;if(r.linkService.eventBus){r.linkService.eventBus.dispatch("fileattachmentannotation",{source:r,id:(0,s.stringToPDFString)(i),filename:i,content:u})}return r}i(t,[{key:"render",value:function e(){this.container.className="fileAttachmentAnnotation";var t=document.createElement("div");t.style.height=this.container.style.height;t.style.width=this.container.style.width;t.addEventListener("dblclick",this._download.bind(this));if(!this.data.hasPopup&&(this.data.title||this.data.contents)){this._createPopup(this.container,t,this.data)}this.container.appendChild(t);return this.container}},{key:"_download",value:function e(){if(!this.downloadManager){(0,s.warn)("Download cannot be started due to unavailable download manager");return}this.downloadManager.downloadData(this.content,this.filename,"")}}]);return t}(f);var L=function(){function e(){l(this,e)}i(e,null,[{key:"render",value:function e(t){for(var r=0,n=t.annotations.length;r<n;r++){var i=t.annotations[r];if(!i){continue}var s=c.create({data:i,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderInteractiveForms:t.renderInteractiveForms||false,svgFactory:new a.DOMSVGFactory});if(s.isRenderable){t.div.appendChild(s.render())}}}},{key:"update",value:function e(t){for(var r=0,n=t.annotations.length;r<n;r++){var i=t.annotations[r];var a=t.div.querySelector('[data-annotation-id="'+i.id+'"]');if(a){a.style.transform="matrix("+t.viewport.transform.join(",")+")"}}t.div.removeAttribute("hidden")}}]);return e}();t.AnnotationLayer=L},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SVGGraphics=undefined;var n=r(332);var i=r(353);var a=r(335);var s=o(a);function o(e){return e&&e.__esModule?e:{default:e}}var u=function e(){throw new Error("Not implemented: SVGGraphics")};{var l={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"};var c=function e(){var t=new Uint8Array([137,80,78,71,13,10,26,10]);var r=12;var i=new Int32Array(256);for(var a=0;a<256;a++){var o=a;for(var u=0;u<8;u++){if(o&1){o=3988292384^o>>1&2147483647}else{o=o>>1&2147483647}}i[a]=o}function l(e,t,r){var n=-1;for(var a=t;a<r;a++){var s=(n^e[a])&255;var o=i[s];n=n>>>8^o}return n^-1}function c(e,t,r,n){var i=n;var a=t.length;r[i]=a>>24&255;r[i+1]=a>>16&255;r[i+2]=a>>8&255;r[i+3]=a&255;i+=4;r[i]=e.charCodeAt(0)&255;r[i+1]=e.charCodeAt(1)&255;r[i+2]=e.charCodeAt(2)&255;r[i+3]=e.charCodeAt(3)&255;i+=4;r.set(t,i);i+=t.length;var s=l(r,n+4,i);r[i]=s>>24&255;r[i+1]=s>>16&255;r[i+2]=s>>8&255;r[i+3]=s&255}function f(e,t,r){var n=1;var i=0;for(var a=t;a<r;++a){n=(n+(e[a]&255))%65521;i=(i+n)%65521}return i<<16|n}function h(e){if(!(0,s.default)()){return d(e)}try{var t;if(parseInt(process.versions.node)>=8){t=e}else{t=new Buffer(e)}var r=require("zlib").deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(e){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return d(e)}function d(e){var t=e.length;var r=65535;var n=Math.ceil(t/r);var i=new Uint8Array(2+t+n*5+4);var a=0;i[a++]=120;i[a++]=156;var s=0;while(t>r){i[a++]=0;i[a++]=255;i[a++]=255;i[a++]=0;i[a++]=0;i.set(e.subarray(s,s+r),a);a+=r;s+=r;t-=r}i[a++]=1;i[a++]=t&255;i[a++]=t>>8&255;i[a++]=~t&65535&255;i[a++]=(~t&65535)>>8&255;i.set(e.subarray(s),a);a+=e.length-s;var o=f(e,0,e.length);i[a++]=o>>24&255;i[a++]=o>>16&255;i[a++]=o>>8&255;i[a++]=o&255;return i}function v(e,i,a,s){var o=e.width;var u=e.height;var l,f,d;var v=e.data;switch(i){case n.ImageKind.GRAYSCALE_1BPP:f=0;l=1;d=o+7>>3;break;case n.ImageKind.RGB_24BPP:f=2;l=8;d=o*3;break;case n.ImageKind.RGBA_32BPP:f=6;l=8;d=o*4;break;default:throw new Error("invalid format")}var p=new Uint8Array((1+d)*u);var m=0,g=0;var y,b;for(y=0;y<u;++y){p[m++]=0;p.set(v.subarray(g,g+d),m);g+=d;m+=d}if(i===n.ImageKind.GRAYSCALE_1BPP&&s){m=0;for(y=0;y<u;y++){m++;for(b=0;b<d;b++){p[m++]^=255}}}var _=new Uint8Array([o>>24&255,o>>16&255,o>>8&255,o&255,u>>24&255,u>>16&255,u>>8&255,u&255,l,f,0,0,0]);var S=h(p);var A=t.length+r*3+_.length+S.length;var w=new Uint8Array(A);var x=0;w.set(t,x);x+=t.length;c("IHDR",_,w,x);x+=r+_.length;c("IDATA",S,w,x);x+=r+S.length;c("IEND",new Uint8Array(0),w,x);return(0,n.createObjectURL)(w,"image/png",a)}return function e(t,r,i){var a=t.kind===undefined?n.ImageKind.GRAYSCALE_1BPP:t.kind;return v(t,a,r,i)}}();var f=function e(){function t(){this.fontSizeScale=1;this.fontWeight=l.fontWeight;this.fontSize=0;this.textMatrix=n.IDENTITY_MATRIX;this.fontMatrix=n.FONT_IDENTITY_MATRIX;this.leading=0;this.textRenderingMode=n.TextRenderingMode.FILL;this.x=0;this.y=0;this.lineX=0;this.lineY=0;this.charSpacing=0;this.wordSpacing=0;this.textHScale=1;this.textRise=0;this.fillColor=l.fillColor;this.strokeColor="#000000";this.fillAlpha=1;this.strokeAlpha=1;this.lineWidth=1;this.lineJoin="";this.lineCap="";this.miterLimit=0;this.dashArray=[];this.dashPhase=0;this.dependencies=[];this.activeClipUrl=null;this.clipGroup=null;this.maskId=""}t.prototype={clone:function e(){return Object.create(this)},setCurrentPoint:function e(t,r){this.x=t;this.y=r}};return t}();t.SVGGraphics=u=function e(){function t(e){var t=[];var r=[];var n=e.length;for(var i=0;i<n;i++){if(e[i].fn==="save"){t.push({fnId:92,fn:"group",items:[]});r.push(t);t=t[t.length-1].items;continue}if(e[i].fn==="restore"){t=r.pop()}else{t.push(e[i])}}return t}function r(e){if(Number.isInteger(e)){return e.toString()}var t=e.toFixed(10);var r=t.length-1;if(t[r]!=="0"){return t}do{r--}while(t[r]==="0");return t.substring(0,t[r]==="."?r:r+1)}function a(e){if(e[4]===0&&e[5]===0){if(e[1]===0&&e[2]===0){if(e[0]===1&&e[3]===1){return""}return"scale("+r(e[0])+" "+r(e[3])+")"}if(e[0]===e[3]&&e[1]===-e[2]){var t=Math.acos(e[0])*180/Math.PI;return"rotate("+r(t)+")"}}else{if(e[0]===1&&e[1]===0&&e[2]===0&&e[3]===1){return"translate("+r(e[4])+" "+r(e[5])+")"}}return"matrix("+r(e[0])+" "+r(e[1])+" "+r(e[2])+" "+r(e[3])+" "+r(e[4])+" "+r(e[5])+")"}function s(e,t,r){this.svgFactory=new i.DOMSVGFactory;this.current=new f;this.transformMatrix=n.IDENTITY_MATRIX;this.transformStack=[];this.extraStack=[];this.commonObjs=e;this.objs=t;this.pendingClip=null;this.pendingEOFill=false;this.embedFonts=false;this.embeddedFonts=Object.create(null);this.cssStyle=null;this.forceDataSchema=!!r}var o="http://www.w3.org/XML/1998/namespace";var u="http://www.w3.org/1999/xlink";var h=["butt","round","square"];var d=["miter","round","bevel"];var v=0;var p=0;s.prototype={save:function e(){this.transformStack.push(this.transformMatrix);var t=this.current;this.extraStack.push(t);this.current=t.clone()},restore:function e(){this.transformMatrix=this.transformStack.pop();this.current=this.extraStack.pop();this.pendingClip=null;this.tgrp=null},group:function e(t){this.save();this.executeOpTree(t);this.restore()},loadDependencies:function e(t){var r=this;var i=t.fnArray;var a=i.length;var s=t.argsArray;for(var o=0;o<a;o++){if(n.OPS.dependency===i[o]){var u=s[o];for(var l=0,c=u.length;l<c;l++){var f=u[l];var h=f.substring(0,2)==="g_";var d;if(h){d=new Promise(function(e){r.commonObjs.get(f,e)})}else{d=new Promise(function(e){r.objs.get(f,e)})}this.current.dependencies.push(d)}}}return Promise.all(this.current.dependencies)},transform:function e(t,r,i,a,s,o){var u=[t,r,i,a,s,o];this.transformMatrix=n.Util.transform(this.transformMatrix,u);this.tgrp=null},getSVG:function e(t,r){var i=this;this.viewport=r;var a=this._initialize(r);return this.loadDependencies(t).then(function(){i.transformMatrix=n.IDENTITY_MATRIX;var e=i.convertOpList(t);i.executeOpTree(e);return a})},convertOpList:function e(r){var i=r.argsArray;var a=r.fnArray;var s=a.length;var o=[];var u=[];for(var l in n.OPS){o[n.OPS[l]]=l}for(var c=0;c<s;c++){var f=a[c];u.push({fnId:f,fn:o[f],args:i[c]})}return t(u)},executeOpTree:function e(t){var r=t.length;for(var i=0;i<r;i++){var a=t[i].fn;var s=t[i].fnId;var o=t[i].args;switch(s|0){case n.OPS.beginText:this.beginText();break;case n.OPS.dependency:break;case n.OPS.setLeading:this.setLeading(o);break;case n.OPS.setLeadingMoveText:this.setLeadingMoveText(o[0],o[1]);break;case n.OPS.setFont:this.setFont(o);break;case n.OPS.showText:this.showText(o[0]);break;case n.OPS.showSpacedText:this.showText(o[0]);break;case n.OPS.endText:this.endText();break;case n.OPS.moveText:this.moveText(o[0],o[1]);break;case n.OPS.setCharSpacing:this.setCharSpacing(o[0]);break;case n.OPS.setWordSpacing:this.setWordSpacing(o[0]);break;case n.OPS.setHScale:this.setHScale(o[0]);break;case n.OPS.setTextMatrix:this.setTextMatrix(o[0],o[1],o[2],o[3],o[4],o[5]);break;case n.OPS.setTextRise:this.setTextRise(o[0]);break;case n.OPS.setTextRenderingMode:this.setTextRenderingMode(o[0]);break;case n.OPS.setLineWidth:this.setLineWidth(o[0]);break;case n.OPS.setLineJoin:this.setLineJoin(o[0]);break;case n.OPS.setLineCap:this.setLineCap(o[0]);break;case n.OPS.setMiterLimit:this.setMiterLimit(o[0]);break;case n.OPS.setFillRGBColor:this.setFillRGBColor(o[0],o[1],o[2]);break;case n.OPS.setStrokeRGBColor:this.setStrokeRGBColor(o[0],o[1],o[2]);break;case n.OPS.setDash:this.setDash(o[0],o[1]);break;case n.OPS.setGState:this.setGState(o[0]);break;case n.OPS.fill:this.fill();break;case n.OPS.eoFill:this.eoFill();break;case n.OPS.stroke:this.stroke();break;case n.OPS.fillStroke:this.fillStroke();break;case n.OPS.eoFillStroke:this.eoFillStroke();break;case n.OPS.clip:this.clip("nonzero");break;case n.OPS.eoClip:this.clip("evenodd");break;case n.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case n.OPS.paintJpegXObject:this.paintJpegXObject(o[0],o[1],o[2]);break;case n.OPS.paintImageXObject:this.paintImageXObject(o[0]);break;case n.OPS.paintInlineImageXObject:this.paintInlineImageXObject(o[0]);break;case n.OPS.paintImageMaskXObject:this.paintImageMaskXObject(o[0]);break;case n.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(o[0],o[1]);break;case n.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case n.OPS.closePath:this.closePath();break;case n.OPS.closeStroke:this.closeStroke();break;case n.OPS.closeFillStroke:this.closeFillStroke();break;case n.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case n.OPS.nextLine:this.nextLine();break;case n.OPS.transform:this.transform(o[0],o[1],o[2],o[3],o[4],o[5]);break;case n.OPS.constructPath:this.constructPath(o[0],o[1]);break;case n.OPS.endPath:this.endPath();break;case 92:this.group(t[i].items);break;default:(0,n.warn)("Unimplemented operator "+a);break}}},setWordSpacing:function e(t){this.current.wordSpacing=t},setCharSpacing:function e(t){this.current.charSpacing=t},nextLine:function e(){this.moveText(0,this.current.leading)},setTextMatrix:function e(t,n,i,a,s,o){var u=this.current;this.current.textMatrix=this.current.lineMatrix=[t,n,i,a,s,o];this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0;u.xcoords=[];u.tspan=this.svgFactory.createElement("svg:tspan");u.tspan.setAttributeNS(null,"font-family",u.fontFamily);u.tspan.setAttributeNS(null,"font-size",r(u.fontSize)+"px");u.tspan.setAttributeNS(null,"y",r(-u.y));u.txtElement=this.svgFactory.createElement("svg:text");u.txtElement.appendChild(u.tspan)},beginText:function e(){this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0;this.current.textMatrix=n.IDENTITY_MATRIX;this.current.lineMatrix=n.IDENTITY_MATRIX;this.current.tspan=this.svgFactory.createElement("svg:tspan");this.current.txtElement=this.svgFactory.createElement("svg:text");this.current.txtgrp=this.svgFactory.createElement("svg:g");this.current.xcoords=[]},moveText:function e(t,n){var i=this.current;this.current.x=this.current.lineX+=t;this.current.y=this.current.lineY+=n;i.xcoords=[];i.tspan=this.svgFactory.createElement("svg:tspan");i.tspan.setAttributeNS(null,"font-family",i.fontFamily);i.tspan.setAttributeNS(null,"font-size",r(i.fontSize)+"px");i.tspan.setAttributeNS(null,"y",r(-i.y))},showText:function e(t){var i=this.current;var s=i.font;var u=i.fontSize;if(u===0){return}var c=i.charSpacing;var f=i.wordSpacing;var h=i.fontDirection;var d=i.textHScale*h;var v=t.length;var p=s.vertical;var m=u*i.fontMatrix[0];var g=0,y;for(y=0;y<v;++y){var b=t[y];if(b===null){g+=h*f;continue}else if((0,n.isNum)(b)){g+=-b*u*.001;continue}var _=b.width;var S=b.fontChar;var A=(b.isSpace?f:0)+c;var w=_*m+A*h;if(!b.isInFont&&!s.missingFile){g+=w;continue}i.xcoords.push(i.x+g*d);i.tspan.textContent+=S;g+=w}if(p){i.y-=g*d}else{i.x+=g*d}i.tspan.setAttributeNS(null,"x",i.xcoords.map(r).join(" "));i.tspan.setAttributeNS(null,"y",r(-i.y));i.tspan.setAttributeNS(null,"font-family",i.fontFamily);i.tspan.setAttributeNS(null,"font-size",r(i.fontSize)+"px");if(i.fontStyle!==l.fontStyle){i.tspan.setAttributeNS(null,"font-style",i.fontStyle)}if(i.fontWeight!==l.fontWeight){i.tspan.setAttributeNS(null,"font-weight",i.fontWeight)}var x=i.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;if(x===n.TextRenderingMode.FILL||x===n.TextRenderingMode.FILL_STROKE){if(i.fillColor!==l.fillColor){i.tspan.setAttributeNS(null,"fill",i.fillColor)}if(i.fillAlpha<1){i.tspan.setAttributeNS(null,"fill-opacity",i.fillAlpha)}}else if(i.textRenderingMode===n.TextRenderingMode.ADD_TO_PATH){i.tspan.setAttributeNS(null,"fill","transparent")}else{i.tspan.setAttributeNS(null,"fill","none")}if(x===n.TextRenderingMode.STROKE||x===n.TextRenderingMode.FILL_STROKE){this._setStrokeAttributes(i.tspan)}var k=i.textMatrix;if(i.textRise!==0){k=k.slice();k[5]+=i.textRise}i.txtElement.setAttributeNS(null,"transform",a(k)+" scale(1, -1)");i.txtElement.setAttributeNS(o,"xml:space","preserve");i.txtElement.appendChild(i.tspan);i.txtgrp.appendChild(i.txtElement);this._ensureTransformGroup().appendChild(i.txtElement)},setLeadingMoveText:function e(t,r){this.setLeading(-r);this.moveText(t,r)},addFontStyle:function e(t){if(!this.cssStyle){this.cssStyle=this.svgFactory.createElement("svg:style");this.cssStyle.setAttributeNS(null,"type","text/css");this.defs.appendChild(this.cssStyle)}var r=(0,n.createObjectURL)(t.data,t.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'+t.loadedName+'";'+" src: url("+r+"); }\n"},setFont:function e(t){var i=this.current;var a=this.commonObjs.get(t[0]);var s=t[1];this.current.font=a;if(this.embedFonts&&a.data&&!this.embeddedFonts[a.loadedName]){this.addFontStyle(a);this.embeddedFonts[a.loadedName]=a}i.fontMatrix=a.fontMatrix?a.fontMatrix:n.FONT_IDENTITY_MATRIX;var o=a.black?a.bold?"bolder":"bold":a.bold?"bold":"normal";var u=a.italic?"italic":"normal";if(s<0){s=-s;i.fontDirection=-1}else{i.fontDirection=1}i.fontSize=s;i.fontFamily=a.loadedName;i.fontWeight=o;i.fontStyle=u;i.tspan=this.svgFactory.createElement("svg:tspan");i.tspan.setAttributeNS(null,"y",r(-i.y));i.xcoords=[]},endText:function e(){var t=this.current;if(t.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG&&t.txtElement&&t.txtElement.hasChildNodes()){t.element=t.txtElement;this.clip("nonzero");this.endPath()}},setLineWidth:function e(t){this.current.lineWidth=t},setLineCap:function e(t){this.current.lineCap=h[t]},setLineJoin:function e(t){this.current.lineJoin=d[t]},setMiterLimit:function e(t){this.current.miterLimit=t},setStrokeAlpha:function e(t){this.current.strokeAlpha=t},setStrokeRGBColor:function e(t,r,i){var a=n.Util.makeCssRgb(t,r,i);this.current.strokeColor=a},setFillAlpha:function e(t){this.current.fillAlpha=t},setFillRGBColor:function e(t,r,i){var a=n.Util.makeCssRgb(t,r,i);this.current.fillColor=a;this.current.tspan=this.svgFactory.createElement("svg:tspan");this.current.xcoords=[]},setDash:function e(t,r){this.current.dashArray=t;this.current.dashPhase=r},constructPath:function e(t,i){var a=this.current;var s=a.x,o=a.y;a.path=this.svgFactory.createElement("svg:path");var u=[];var l=t.length;for(var c=0,f=0;c<l;c++){switch(t[c]|0){case n.OPS.rectangle:s=i[f++];o=i[f++];var h=i[f++];var d=i[f++];var v=s+h;var p=o+d;u.push("M",r(s),r(o),"L",r(v),r(o),"L",r(v),r(p),"L",r(s),r(p),"Z");break;case n.OPS.moveTo:s=i[f++];o=i[f++];u.push("M",r(s),r(o));break;case n.OPS.lineTo:s=i[f++];o=i[f++];u.push("L",r(s),r(o));break;case n.OPS.curveTo:s=i[f+4];o=i[f+5];u.push("C",r(i[f]),r(i[f+1]),r(i[f+2]),r(i[f+3]),r(s),r(o));f+=6;break;case n.OPS.curveTo2:s=i[f+2];o=i[f+3];u.push("C",r(s),r(o),r(i[f]),r(i[f+1]),r(i[f+2]),r(i[f+3]));f+=4;break;case n.OPS.curveTo3:s=i[f+2];o=i[f+3];u.push("C",r(i[f]),r(i[f+1]),r(s),r(o),r(s),r(o));f+=4;break;case n.OPS.closePath:u.push("Z");break}}a.path.setAttributeNS(null,"d",u.join(" "));a.path.setAttributeNS(null,"fill","none");this._ensureTransformGroup().appendChild(a.path);a.element=a.path;a.setCurrentPoint(s,o)},endPath:function e(){if(!this.pendingClip){return}var t=this.current;var r="clippath"+v;v++;var n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",r);n.setAttributeNS(null,"transform",a(this.transformMatrix));var i=t.element.cloneNode(true);if(this.pendingClip==="evenodd"){i.setAttributeNS(null,"clip-rule","evenodd")}else{i.setAttributeNS(null,"clip-rule","nonzero")}this.pendingClip=null;n.appendChild(i);this.defs.appendChild(n);if(t.activeClipUrl){t.clipGroup=null;this.extraStack.forEach(function(e){e.clipGroup=null});n.setAttributeNS(null,"clip-path",t.activeClipUrl)}t.activeClipUrl="url(#"+r+")";this.tgrp=null},clip:function e(t){this.pendingClip=t},closePath:function e(){var t=this.current;if(t.path){var r=t.path.getAttributeNS(null,"d");r+="Z";t.path.setAttributeNS(null,"d",r)}},setLeading:function e(t){this.current.leading=-t},setTextRise:function e(t){this.current.textRise=t},setTextRenderingMode:function e(t){this.current.textRenderingMode=t},setHScale:function e(t){this.current.textHScale=t/100},setGState:function e(t){for(var r=0,i=t.length;r<i;r++){var a=t[r];var s=a[0];var o=a[1];switch(s){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,n.warn)("Unimplemented graphic state "+s);break}}},fill:function e(){var t=this.current;if(t.element){t.element.setAttributeNS(null,"fill",t.fillColor);t.element.setAttributeNS(null,"fill-opacity",t.fillAlpha);this.endPath()}},stroke:function e(){var t=this.current;if(t.element){this._setStrokeAttributes(t.element);t.element.setAttributeNS(null,"fill","none");this.endPath()}},_setStrokeAttributes:function e(t){var n=this.current;t.setAttributeNS(null,"stroke",n.strokeColor);t.setAttributeNS(null,"stroke-opacity",n.strokeAlpha);t.setAttributeNS(null,"stroke-miterlimit",r(n.miterLimit));t.setAttributeNS(null,"stroke-linecap",n.lineCap);t.setAttributeNS(null,"stroke-linejoin",n.lineJoin);t.setAttributeNS(null,"stroke-width",r(n.lineWidth)+"px");t.setAttributeNS(null,"stroke-dasharray",n.dashArray.map(r).join(" "));t.setAttributeNS(null,"stroke-dashoffset",r(n.dashPhase)+"px")},eoFill:function e(){if(this.current.element){this.current.element.setAttributeNS(null,"fill-rule","evenodd")}this.fill()},fillStroke:function e(){this.stroke();this.fill()},eoFillStroke:function e(){if(this.current.element){this.current.element.setAttributeNS(null,"fill-rule","evenodd")}this.fillStroke()},closeStroke:function e(){this.closePath();this.stroke()},closeFillStroke:function e(){this.closePath();this.fillStroke()},closeEOFillStroke:function e(){this.closePath();this.eoFillStroke()},paintSolidColorImageMask:function e(){var t=this.current;var r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x","0");r.setAttributeNS(null,"y","0");r.setAttributeNS(null,"width","1px");r.setAttributeNS(null,"height","1px");r.setAttributeNS(null,"fill",t.fillColor);this._ensureTransformGroup().appendChild(r)},paintJpegXObject:function e(t,n,i){var a=this.objs.get(t);var s=this.svgFactory.createElement("svg:image");s.setAttributeNS(u,"xlink:href",a.src);s.setAttributeNS(null,"width",r(n));s.setAttributeNS(null,"height",r(i));s.setAttributeNS(null,"x","0");s.setAttributeNS(null,"y",r(-i));s.setAttributeNS(null,"transform","scale("+r(1/n)+" "+r(-1/i)+")");this._ensureTransformGroup().appendChild(s)},paintImageXObject:function e(t){var r=this.objs.get(t);if(!r){(0,n.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(r)},paintInlineImageXObject:function e(t,n){var i=t.width;var a=t.height;var s=c(t,this.forceDataSchema,!!n);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0");o.setAttributeNS(null,"y","0");o.setAttributeNS(null,"width",r(i));o.setAttributeNS(null,"height",r(a));this.current.element=o;this.clip("nonzero");var l=this.svgFactory.createElement("svg:image");l.setAttributeNS(u,"xlink:href",s);l.setAttributeNS(null,"x","0");l.setAttributeNS(null,"y",r(-a));l.setAttributeNS(null,"width",r(i)+"px");l.setAttributeNS(null,"height",r(a)+"px");l.setAttributeNS(null,"transform","scale("+r(1/i)+" "+r(-1/a)+")");if(n){n.appendChild(l)}else{this._ensureTransformGroup().appendChild(l)}},paintImageMaskXObject:function e(t){var n=this.current;var i=t.width;var a=t.height;var s=n.fillColor;n.maskId="mask"+p++;var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",n.maskId);var u=this.svgFactory.createElement("svg:rect");u.setAttributeNS(null,"x","0");u.setAttributeNS(null,"y","0");u.setAttributeNS(null,"width",r(i));u.setAttributeNS(null,"height",r(a));u.setAttributeNS(null,"fill",s);u.setAttributeNS(null,"mask","url(#"+n.maskId+")");this.defs.appendChild(o);this._ensureTransformGroup().appendChild(u);this.paintInlineImageXObject(t,o)},paintFormXObjectBegin:function e(t,n){if(Array.isArray(t)&&t.length===6){this.transform(t[0],t[1],t[2],t[3],t[4],t[5])}if(Array.isArray(n)&&n.length===4){var i=n[2]-n[0];var a=n[3]-n[1];var s=this.svgFactory.createElement("svg:rect");s.setAttributeNS(null,"x",n[0]);s.setAttributeNS(null,"y",n[1]);s.setAttributeNS(null,"width",r(i));s.setAttributeNS(null,"height",r(a));this.current.element=s;this.clip("nonzero");this.endPath()}},paintFormXObjectEnd:function e(){},_initialize:function e(t){var r=this.svgFactory.create(t.width,t.height);var n=this.svgFactory.createElement("svg:defs");r.appendChild(n);this.defs=n;var i=this.svgFactory.createElement("svg:g");i.setAttributeNS(null,"transform",a(t.transform));r.appendChild(i);this.svg=i;return r},_ensureClipGroup:function e(){if(!this.current.clipGroup){var t=this.svgFactory.createElement("svg:g");t.setAttributeNS(null,"clip-path",this.current.activeClipUrl);this.svg.appendChild(t);this.current.clipGroup=t}return this.current.clipGroup},_ensureTransformGroup:function e(){if(!this.tgrp){this.tgrp=this.svgFactory.createElement("svg:g");this.tgrp.setAttributeNS(null,"transform",a(this.transformMatrix));if(this.current.activeClipUrl){this._ensureClipGroup().appendChild(this.tgrp)}else{this.svg.appendChild(this.tgrp)}}return this.tgrp}};return s}()}t.SVGGraphics=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PDFNodeStream=undefined;var n=r(360);var i=u(n);var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var s=r(332);var o=r(371);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function c(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}function f(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(i,a){try{var s=t[i](a);var o=s.value}catch(e){r(e);return}if(s.done){e(o)}else{return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)})}}return n("next")})}}function h(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var d=require("fs");var v=require("http");var p=require("https");var m=require("url");var g=/^file:\/\/\/[a-zA-Z]:\//;function y(e){var t=m.parse(e);if(t.protocol==="file:"||t.host){return t}if(/^[a-z]:[/\\]/i.test(e)){return m.parse("file:///"+e)}if(!t.host){t.protocol="file:"}return t}var b=function(){function e(t){h(this,e);this.source=t;this.url=y(t.url);this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:";this.isFsUrl=this.url.protocol==="file:";this.httpHeaders=this.isHttp&&t.httpHeaders||{};this._fullRequest=null;this._rangeRequestReaders=[]}a(e,[{key:"getFullReader",value:function e(){(0,s.assert)(!this._fullRequest);this._fullRequest=this.isFsUrl?new k(this):new w(this);return this._fullRequest}},{key:"getRangeReader",value:function e(t,r){var n=this.isFsUrl?new P(this,t,r):new x(this,t,r);this._rangeRequestReaders.push(n);return n}},{key:"cancelAllRequests",value:function e(t){if(this._fullRequest){this._fullRequest.cancel(t)}var r=this._rangeRequestReaders.slice(0);r.forEach(function(e){e.cancel(t)})}}]);return e}();var _=function(){function e(t){h(this,e);this._url=t.url;this._done=false;this._storedError=null;this.onProgress=null;var r=t.source;this._contentLength=r.length;this._loaded=0;this._filename=null;this._disableRange=r.disableRange||false;this._rangeChunkSize=r.rangeChunkSize;if(!this._rangeChunkSize&&!this._disableRange){this._disableRange=true}this._isStreamingSupported=!r.disableStream;this._isRangeSupported=!r.disableRange;this._readableStream=null;this._readCapability=(0,s.createPromiseCapability)();this._headersCapability=(0,s.createPromiseCapability)()}a(e,[{key:"read",value:function(){var e=f(i.default.mark(function e(){var t,r;return i.default.wrap(function e(n){while(1){switch(n.prev=n.next){case 0:n.next=2;return this._readCapability.promise;case 2:if(!this._done){n.next=4;break}return n.abrupt("return",{value:undefined,done:true});case 4:if(!this._storedError){n.next=6;break}throw this._storedError;case 6:t=this._readableStream.read();if(!(t===null)){n.next=10;break}this._readCapability=(0,s.createPromiseCapability)();return n.abrupt("return",this.read());case 10:this._loaded+=t.length;if(this.onProgress){this.onProgress({loaded:this._loaded,total:this._contentLength})}r=new Uint8Array(t).buffer;return n.abrupt("return",{value:r,done:false});case 14:case"end":return n.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function e(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}},{key:"_error",value:function e(t){this._storedError=t;this._readCapability.resolve()}},{key:"_setReadableStream",value:function e(t){var r=this;this._readableStream=t;t.on("readable",function(){r._readCapability.resolve()});t.on("end",function(){t.destroy();r._done=true;r._readCapability.resolve()});t.on("error",function(e){r._error(e)});if(!this._isStreamingSupported&&this._isRangeSupported){this._error(new s.AbortException("streaming is disabled"))}if(this._storedError){this._readableStream.destroy(this._storedError)}}},{key:"headersReady",get:function e(){return this._headersCapability.promise}},{key:"filename",get:function e(){return this._filename}},{key:"contentLength",get:function e(){return this._contentLength}},{key:"isRangeSupported",get:function e(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function e(){return this._isStreamingSupported}}]);return e}();var S=function(){function e(t){h(this,e);this._url=t.url;this._done=false;this._storedError=null;this.onProgress=null;this._loaded=0;this._readableStream=null;this._readCapability=(0,s.createPromiseCapability)();var r=t.source;this._isStreamingSupported=!r.disableStream}a(e,[{key:"read",value:function(){var e=f(i.default.mark(function e(){var t,r;return i.default.wrap(function e(n){while(1){switch(n.prev=n.next){case 0:n.next=2;return this._readCapability.promise;case 2:if(!this._done){n.next=4;break}return n.abrupt("return",{value:undefined,done:true});case 4:if(!this._storedError){n.next=6;break}throw this._storedError;case 6:t=this._readableStream.read();if(!(t===null)){n.next=10;break}this._readCapability=(0,s.createPromiseCapability)();return n.abrupt("return",this.read());case 10:this._loaded+=t.length;if(this.onProgress){this.onProgress({loaded:this._loaded})}r=new Uint8Array(t).buffer;return n.abrupt("return",{value:r,done:false});case 14:case"end":return n.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function e(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}},{key:"_error",value:function e(t){this._storedError=t;this._readCapability.resolve()}},{key:"_setReadableStream",value:function e(t){var r=this;this._readableStream=t;t.on("readable",function(){r._readCapability.resolve()});t.on("end",function(){t.destroy();r._done=true;r._readCapability.resolve()});t.on("error",function(e){r._error(e)});if(this._storedError){this._readableStream.destroy(this._storedError)}}},{key:"isStreamingSupported",get:function e(){return this._isStreamingSupported}}]);return e}();function A(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var w=function(e){c(t,e);function t(e){h(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));var n=function t(n){if(n.statusCode===404){var i=new s.MissingPDFException('Missing PDF "'+r._url+'".');r._storedError=i;r._headersCapability.reject(i);return}r._headersCapability.resolve();r._setReadableStream(n);var a=function e(t){return r._readableStream.headers[t.toLowerCase()]};var u=(0,o.validateRangeRequestCapabilities)({getResponseHeader:a,isHttp:e.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),l=u.allowRangeRequests,c=u.suggestedLength;r._isRangeSupported=l;r._contentLength=c||r._contentLength;r._filename=(0,o.extractFilenameFromHeader)(a)};r._request=null;if(r._url.protocol==="http:"){r._request=v.request(A(r._url,e.httpHeaders),n)}else{r._request=p.request(A(r._url,e.httpHeaders),n)}r._request.on("error",function(e){r._storedError=e;r._headersCapability.reject(e)});r._request.end();return r}return t}(_);var x=function(e){c(t,e);function t(e,r,n){h(this,t);var i=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));i._httpHeaders={};for(var a in e.httpHeaders){var o=e.httpHeaders[a];if(typeof o==="undefined"){continue}i._httpHeaders[a]=o}i._httpHeaders["Range"]="bytes="+r+"-"+(n-1);var u=function e(t){if(t.statusCode===404){var r=new s.MissingPDFException('Missing PDF "'+i._url+'".');i._storedError=r;return}i._setReadableStream(t)};i._request=null;if(i._url.protocol==="http:"){i._request=v.request(A(i._url,i._httpHeaders),u)}else{i._request=p.request(A(i._url,i._httpHeaders),u)}i._request.on("error",function(e){i._storedError=e});i._request.end();return i}return t}(S);var k=function(e){c(t,e);function t(e){h(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));var n=decodeURIComponent(r._url.path);if(g.test(r._url.href)){n=n.replace(/^\//,"")}d.lstat(n,function(e,t){if(e){if(e.code==="ENOENT"){e=new s.MissingPDFException('Missing PDF "'+n+'".')}r._storedError=e;r._headersCapability.reject(e);return}r._contentLength=t.size;r._setReadableStream(d.createReadStream(n));r._headersCapability.resolve()});return r}return t}(_);var P=function(e){c(t,e);function t(e,r,n){h(this,t);var i=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));var a=decodeURIComponent(i._url.path);if(g.test(i._url.href)){a=a.replace(/^\//,"")}i._setReadableStream(d.createReadStream(a,{start:r,end:n-1}));return i}return t}(S);t.PDFNodeStream=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateResponseStatus=t.validateRangeRequestCapabilities=t.extractFilenameFromHeader=t.createResponseStatusError=undefined;var n=r(332);var i=r(372);function a(e){var t=e.getResponseHeader,r=e.isHttp,i=e.rangeChunkSize,a=e.disableRange;(0,n.assert)(i>0,"Range chunk size must be larger than zero");var s={allowRangeRequests:false,suggestedLength:undefined};var o=parseInt(t("Content-Length"),10);if(!Number.isInteger(o)){return s}s.suggestedLength=o;if(o<=2*i){return s}if(a||!r){return s}if(t("Accept-Ranges")!=="bytes"){return s}var u=t("Content-Encoding")||"identity";if(u!=="identity"){return s}s.allowRangeRequests=true;return s}function s(e){var t=e("Content-Disposition");if(t){var r=(0,i.getFilenameFromContentDispositionHeader)(t);if(/\.pdf$/i.test(r)){return r}}return null}function o(e,t){if(e===404||e===0&&/^file:/.test(t)){return new n.MissingPDFException('Missing PDF "'+t+'".')}return new n.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function u(e){return e===200||e===206}t.createResponseStatusError=o;t.extractFilenameFromHeader=s;t.validateRangeRequestCapabilities=a;t.validateResponseStatus=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){var r=[];var n=true;var i=false;var a=undefined;try{for(var s=e[Symbol.iterator](),o;!(n=(o=s.next()).done);n=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;a=e}finally{try{if(!n&&s["return"])s["return"]()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function i(e){var t=true;var r=o("filename\\*","i").exec(e);if(r){r=r[1];var i=f(r);i=unescape(i);i=h(i);i=d(i);return l(i)}r=c(e);if(r){var a=d(r);return l(a)}r=o("filename","i").exec(e);if(r){r=r[1];var s=f(r);s=d(s);return l(s)}function o(e,t){return new RegExp("(?:^|;)\\s*"+e+"\\s*=\\s*"+"("+'[^";\\s][^;\\s]*'+"|"+'"(?:[^"\\\\]|\\\\"?)+"?'+")",t)}function u(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r)){return r}try{var n=new TextDecoder(e,{fatal:true});var i=new Array(r.length);for(var a=0;a<r.length;++a){i[a]=r.charCodeAt(a)}r=n.decode(new Uint8Array(i));t=false}catch(n){if(/^utf-?8$/i.test(e)){try{r=decodeURIComponent(escape(r));t=false}catch(e){}}}}return r}function l(e){if(t&&/[\x80-\xff]/.test(e)){e=u("utf-8",e);if(t){e=u("iso-8859-1",e)}}return e}function c(e){var t=[],r=void 0;var i=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");while((r=i.exec(e))!==null){var a=r,s=n(a,4),u=s[1],l=s[2],c=s[3];u=parseInt(u,10);if(u in t){if(u===0){break}continue}t[u]=[l,c]}var d=[];for(var v=0;v<t.length;++v){if(!(v in t)){break}var p=n(t[v],2),m=p[0],g=p[1];g=f(g);if(m){g=unescape(g);if(v===0){g=h(g)}}d.push(g)}return d.join("")}function f(e){if(e.charAt(0)==='"'){var t=e.slice(1).split('\\"');for(var r=0;r<t.length;++r){var n=t[r].indexOf('"');if(n!==-1){t[r]=t[r].slice(0,n);t.length=r+1}t[r]=t[r].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function h(e){var t=e.indexOf("'");if(t===-1){return e}var r=e.slice(0,t);var n=e.slice(t+1);var i=n.replace(/^[^']*'/,"");return u(r,i)}function d(e){if(e.slice(0,2)!=="=?"||/[\x00-\x19\x80-\xff]/.test(e)){return e}return e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(e,t,r,n){if(r==="q"||r==="Q"){n=n.replace(/_/g," ");n=n.replace(/=([0-9a-fA-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))});return u(t,n)}try{n=atob(n)}catch(e){}return u(t,n)})}return""}t.getFilenameFromContentDispositionHeader=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PDFFetchStream=undefined;var n=r(360);var i=u(n);var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var s=r(332);var o=r(371);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(i,a){try{var s=t[i](a);var o=s.value}catch(e){r(e);return}if(s.done){e(o)}else{return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)})}}return n("next")})}}function c(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function f(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}var h=function(){function e(t){c(this,e);this.source=t;this.isHttp=/^https?:/i.test(t.url);this.httpHeaders=this.isHttp&&t.httpHeaders||{};this._fullRequestReader=null;this._rangeRequestReaders=[]}a(e,[{key:"getFullReader",value:function e(){(0,s.assert)(!this._fullRequestReader);this._fullRequestReader=new d(this);return this._fullRequestReader}},{key:"getRangeReader",value:function e(t,r){var n=new v(this,t,r);this._rangeRequestReaders.push(n);return n}},{key:"cancelAllRequests",value:function e(t){if(this._fullRequestReader){this._fullRequestReader.cancel(t)}var r=this._rangeRequestReaders.slice(0);r.forEach(function(e){e.cancel(t)})}}]);return e}();var d=function(){function e(t){var r=this;c(this,e);this._stream=t;this._reader=null;this._loaded=0;this._filename=null;var n=t.source;this._withCredentials=n.withCredentials;this._contentLength=n.length;this._headersCapability=(0,s.createPromiseCapability)();this._disableRange=n.disableRange||false;this._rangeChunkSize=n.rangeChunkSize;if(!this._rangeChunkSize&&!this._disableRange){this._disableRange=true}if(typeof AbortController!=="undefined"){this._abortController=new AbortController}this._isStreamingSupported=!n.disableStream;this._isRangeSupported=!n.disableRange;this._headers=new Headers;for(var i in this._stream.httpHeaders){var a=this._stream.httpHeaders[i];if(typeof a==="undefined"){continue}this._headers.append(i,a)}var u=n.url;fetch(u,f(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,o.validateResponseStatus)(e.status)){throw(0,o.createResponseStatusError)(e.status,u)}r._reader=e.body.getReader();r._headersCapability.resolve();var t=function t(r){return e.headers.get(r)};var n=(0,o.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),i=n.allowRangeRequests,a=n.suggestedLength;r._isRangeSupported=i;r._contentLength=a||r._contentLength;r._filename=(0,o.extractFilenameFromHeader)(t);if(!r._isStreamingSupported&&r._isRangeSupported){r.cancel(new s.AbortException("streaming is disabled"))}}).catch(this._headersCapability.reject);this.onProgress=null}a(e,[{key:"read",value:function(){var e=l(i.default.mark(function e(){var t,r,n,a;return i.default.wrap(function e(i){while(1){switch(i.prev=i.next){case 0:i.next=2;return this._headersCapability.promise;case 2:i.next=4;return this._reader.read();case 4:t=i.sent;r=t.value;n=t.done;if(!n){i.next=9;break}return i.abrupt("return",{value:r,done:n});case 9:this._loaded+=r.byteLength;if(this.onProgress){this.onProgress({loaded:this._loaded,total:this._contentLength})}a=new Uint8Array(r).buffer;return i.abrupt("return",{value:a,done:false});case 13:case"end":return i.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function e(t){if(this._reader){this._reader.cancel(t)}if(this._abortController){this._abortController.abort()}}},{key:"headersReady",get:function e(){return this._headersCapability.promise}},{key:"filename",get:function e(){return this._filename}},{key:"contentLength",get:function e(){return this._contentLength}},{key:"isRangeSupported",get:function e(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function e(){return this._isStreamingSupported}}]);return e}();var v=function(){function e(t,r,n){var i=this;c(this,e);this._stream=t;this._reader=null;this._loaded=0;var a=t.source;this._withCredentials=a.withCredentials;this._readCapability=(0,s.createPromiseCapability)();this._isStreamingSupported=!a.disableStream;if(typeof AbortController!=="undefined"){this._abortController=new AbortController}this._headers=new Headers;for(var u in this._stream.httpHeaders){var l=this._stream.httpHeaders[u];if(typeof l==="undefined"){continue}this._headers.append(u,l)}var h=r+"-"+(n-1);this._headers.append("Range","bytes="+h);var d=a.url;fetch(d,f(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,o.validateResponseStatus)(e.status)){throw(0,o.createResponseStatusError)(e.status,d)}i._readCapability.resolve();i._reader=e.body.getReader()});this.onProgress=null}a(e,[{key:"read",value:function(){var e=l(i.default.mark(function e(){var t,r,n,a;return i.default.wrap(function e(i){while(1){switch(i.prev=i.next){case 0:i.next=2;return this._readCapability.promise;case 2:i.next=4;return this._reader.read();case 4:t=i.sent;r=t.value;n=t.done;if(!n){i.next=9;break}return i.abrupt("return",{value:r,done:n});case 9:this._loaded+=r.byteLength;if(this.onProgress){this.onProgress({loaded:this._loaded})}a=new Uint8Array(r).buffer;return i.abrupt("return",{value:a,done:false});case 13:case"end":return i.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function e(t){if(this._reader){this._reader.cancel(t)}if(this._abortController){this._abortController.abort()}}},{key:"isStreamingSupported",get:function e(){return this._isStreamingSupported}}]);return e}();t.PDFFetchStream=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NetworkManager=t.PDFNetworkStream=undefined;var n=r(360);var i=l(n);var a=r(332);var s=r(371);var o=r(334);var u=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(i,a){try{var s=t[i](a);var o=s.value}catch(e){r(e);return}if(s.done){e(o)}else{return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)})}}return n("next")})}}var f=200;var h=206;function d(e,t){this.url=e;t=t||{};this.isHttp=/^https?:/i.test(e);this.httpHeaders=this.isHttp&&t.httpHeaders||{};this.withCredentials=t.withCredentials||false;this.getXhr=t.getXhr||function e(){return new XMLHttpRequest};this.currXhrId=0;this.pendingRequests=Object.create(null);this.loadedRequests=Object.create(null)}function v(e){var t=e.response;if(typeof t!=="string"){return t}var r=(0,a.stringToBytes)(t);return r.buffer}var p=function e(){try{var t=new XMLHttpRequest;t.open("GET",u.default.location.href);t.responseType="moz-chunked-arraybuffer";return t.responseType==="moz-chunked-arraybuffer"}catch(e){return false}}();d.prototype={requestRange:function e(t,r,n){var i={begin:t,end:r};for(var a in n){i[a]=n[a]}return this.request(i)},requestFull:function e(t){return this.request(t)},request:function e(t){var r=this.getXhr();var n=this.currXhrId++;var i=this.pendingRequests[n]={xhr:r};r.open("GET",this.url);r.withCredentials=this.withCredentials;for(var a in this.httpHeaders){var s=this.httpHeaders[a];if(typeof s==="undefined"){continue}r.setRequestHeader(a,s)}if(this.isHttp&&"begin"in t&&"end"in t){var o=t.begin+"-"+(t.end-1);r.setRequestHeader("Range","bytes="+o);i.expectedStatus=206}else{i.expectedStatus=200}var u=p&&!!t.onProgressiveData;if(u){r.responseType="moz-chunked-arraybuffer";i.onProgressiveData=t.onProgressiveData;i.mozChunked=true}else{r.responseType="arraybuffer"}if(t.onError){r.onerror=function(e){t.onError(r.status)}}r.onreadystatechange=this.onStateChange.bind(this,n);r.onprogress=this.onProgress.bind(this,n);i.onHeadersReceived=t.onHeadersReceived;i.onDone=t.onDone;i.onError=t.onError;i.onProgress=t.onProgress;r.send(null);return n},onProgress:function e(t,r){var n=this.pendingRequests[t];if(!n){return}if(n.mozChunked){var i=v(n.xhr);n.onProgressiveData(i)}var a=n.onProgress;if(a){a(r)}},onStateChange:function e(t,r){var n=this.pendingRequests[t];if(!n){return}var i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived){n.onHeadersReceived();delete n.onHeadersReceived}if(i.readyState!==4){return}if(!(t in this.pendingRequests)){return}delete this.pendingRequests[t];if(i.status===0&&this.isHttp){if(n.onError){n.onError(i.status)}return}var a=i.status||f;var s=a===f&&n.expectedStatus===h;if(!s&&a!==n.expectedStatus){if(n.onError){n.onError(i.status)}return}this.loadedRequests[t]=true;var o=v(i);if(a===h){var u=i.getResponseHeader("Content-Range");var l=/bytes (\d+)-(\d+)\/(\d+)/.exec(u);var c=parseInt(l[1],10);n.onDone({begin:c,chunk:o})}else if(n.onProgressiveData){n.onDone(null)}else if(o){n.onDone({begin:0,chunk:o})}else if(n.onError){n.onError(i.status)}},hasPendingRequests:function e(){for(var t in this.pendingRequests){return true}return false},getRequestXhr:function e(t){return this.pendingRequests[t].xhr},isStreamingRequest:function e(t){return!!this.pendingRequests[t].onProgressiveData},isPendingRequest:function e(t){return t in this.pendingRequests},isLoadedRequest:function e(t){return t in this.loadedRequests},abortAllRequests:function e(){for(var t in this.pendingRequests){this.abortRequest(t|0)}},abortRequest:function e(t){var r=this.pendingRequests[t].xhr;delete this.pendingRequests[t];r.abort()}};function m(e){this._source=e;this._manager=new d(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials});this._rangeChunkSize=e.rangeChunkSize;this._fullRequestReader=null;this._rangeRequestReaders=[]}m.prototype={_onRangeRequestReaderClosed:function e(t){var r=this._rangeRequestReaders.indexOf(t);if(r>=0){this._rangeRequestReaders.splice(r,1)}},getFullReader:function e(){(0,a.assert)(!this._fullRequestReader);this._fullRequestReader=new g(this._manager,this._source);return this._fullRequestReader},getRangeReader:function e(t,r){var n=new y(this._manager,t,r);n.onClosed=this._onRangeRequestReaderClosed.bind(this);this._rangeRequestReaders.push(n);return n},cancelAllRequests:function e(t){if(this._fullRequestReader){this._fullRequestReader.cancel(t)}var r=this._rangeRequestReaders.slice(0);r.forEach(function(e){e.cancel(t)})}};function g(e,t){this._manager=e;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onProgressiveData:t.disableStream?null:this._onProgressiveData.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url;this._fullRequestId=e.requestFull(r);this._headersReceivedCapability=(0,a.createPromiseCapability)();this._disableRange=t.disableRange||false;this._contentLength=t.length;this._rangeChunkSize=t.rangeChunkSize;if(!this._rangeChunkSize&&!this._disableRange){this._disableRange=true}this._isStreamingSupported=false;this._isRangeSupported=false;this._cachedChunks=[];this._requests=[];this._done=false;this._storedError=undefined;this._filename=null;this.onProgress=null}g.prototype={_onHeadersReceived:function e(){var t=this._fullRequestId;var r=this._manager.getRequestXhr(t);var n=function e(t){return r.getResponseHeader(t)};var i=(0,s.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),a=i.allowRangeRequests,o=i.suggestedLength;if(a){this._isRangeSupported=true}this._contentLength=o||this._contentLength;this._filename=(0,s.extractFilenameFromHeader)(n);var u=this._manager;if(u.isStreamingRequest(t)){this._isStreamingSupported=true}else if(this._isRangeSupported){u.abortRequest(t)}this._headersReceivedCapability.resolve()},_onProgressiveData:function e(t){if(this._requests.length>0){var r=this._requests.shift();r.resolve({value:t,done:false})}else{this._cachedChunks.push(t)}},_onDone:function e(t){if(t){this._onProgressiveData(t.chunk)}this._done=true;if(this._cachedChunks.length>0){return}this._requests.forEach(function(e){e.resolve({value:undefined,done:true})});this._requests=[]},_onError:function e(t){var r=this._url;var n=(0,s.createResponseStatusError)(t,r);this._storedError=n;this._headersReceivedCapability.reject(n);this._requests.forEach(function(e){e.reject(n)});this._requests=[];this._cachedChunks=[]},_onProgress:function e(t){if(this.onProgress){this.onProgress({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},get filename(){return this._filename},get isRangeSupported(){return this._isRangeSupported},get isStreamingSupported(){return this._isStreamingSupported},get contentLength(){return this._contentLength},get headersReady(){return this._headersReceivedCapability.promise},read:function(){var e=c(i.default.mark(function e(){var t,r;return i.default.wrap(function e(n){while(1){switch(n.prev=n.next){case 0:if(!this._storedError){n.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){n.next=5;break}t=this._cachedChunks.shift();return n.abrupt("return",{value:t,done:false});case 5:if(!this._done){n.next=7;break}return n.abrupt("return",{value:undefined,done:true});case 7:r=(0,a.createPromiseCapability)();this._requests.push(r);return n.abrupt("return",r.promise);case 10:case"end":return n.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),cancel:function e(t){this._done=true;this._headersReceivedCapability.reject(t);this._requests.forEach(function(e){e.resolve({value:undefined,done:true})});this._requests=[];if(this._manager.isPendingRequest(this._fullRequestId)){this._manager.abortRequest(this._fullRequestId)}this._fullRequestReader=null}};function y(e,t,r){this._manager=e;var n={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(t,r,n);this._requests=[];this._queuedChunk=null;this._done=false;this.onProgress=null;this.onClosed=null}y.prototype={_close:function e(){if(this.onClosed){this.onClosed(this)}},_onDone:function e(t){var r=t.chunk;if(this._requests.length>0){var n=this._requests.shift();n.resolve({value:r,done:false})}else{this._queuedChunk=r}this._done=true;this._requests.forEach(function(e){e.resolve({value:undefined,done:true})});this._requests=[];this._close()},_onProgress:function e(t){if(!this.isStreamingSupported&&this.onProgress){this.onProgress({loaded:t.loaded})}},get isStreamingSupported(){return false},read:function(){var e=c(i.default.mark(function e(){var t,r;return i.default.wrap(function e(n){while(1){switch(n.prev=n.next){case 0:if(!(this._queuedChunk!==null)){n.next=4;break}t=this._queuedChunk;this._queuedChunk=null;return n.abrupt("return",{value:t,done:false});case 4:if(!this._done){n.next=6;break}return n.abrupt("return",{value:undefined,done:true});case 6:r=(0,a.createPromiseCapability)();this._requests.push(r);return n.abrupt("return",r.promise);case 9:case"end":return n.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),cancel:function e(t){this._done=true;this._requests.forEach(function(e){e.resolve({value:undefined,done:true})});this._requests=[];if(this._manager.isPendingRequest(this._requestId)){this._manager.abortRequest(this._requestId)}this._close()}};t.PDFNetworkStream=m;t.NetworkManager=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SimpleLinkService=t.PDFLinkService=undefined;var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var a=r(376);var s=r(377);function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var u=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=t.eventBus,n=t.externalLinkTarget,i=n===undefined?null:n,s=t.externalLinkRel,u=s===undefined?null:s;o(this,e);this.eventBus=r||(0,a.getGlobalEventBus)();this.externalLinkTarget=i;this.externalLinkRel=u;this.baseUrl=null;this.pdfDocument=null;this.pdfViewer=null;this.pdfHistory=null;this._pagesRefCache=null}i(e,[{key:"setDocument",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this.baseUrl=r;this.pdfDocument=t;this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function e(t){this.pdfViewer=t}},{key:"setHistory",value:function e(t){this.pdfHistory=t}},{key:"navigateTo",value:function e(t){var r=this;var n=function e(n){var i=n.namedDest,a=n.explicitDest;var s=a[0],o=void 0;if(s instanceof Object){o=r._cachedPageNumber(s);if(o===null){r.pdfDocument.getPageIndex(s).then(function(t){r.cachePageRef(t+1,s);e({namedDest:i,explicitDest:a})}).catch(function(){console.error('PDFLinkService.navigateTo: "'+s+'" is not '+('a valid page reference, for dest="'+t+'".'))});return}}else if(Number.isInteger(s)){o=s+1}else{console.error('PDFLinkService.navigateTo: "'+s+'" is not '+('a valid destination reference, for dest="'+t+'".'));return}if(!o||o<1||o>r.pagesCount){console.error('PDFLinkService.navigateTo: "'+o+'" is not '+('a valid page number, for dest="'+t+'".'));return}if(r.pdfHistory){r.pdfHistory.pushCurrentPosition();r.pdfHistory.push({namedDest:i,explicitDest:a,pageNumber:o})}r.pdfViewer.scrollPageIntoView({pageNumber:o,destArray:a})};new Promise(function(e,n){if(typeof t==="string"){r.pdfDocument.getDestination(t).then(function(r){e({namedDest:t,explicitDest:r})});return}e({namedDest:"",explicitDest:t})}).then(function(e){if(!Array.isArray(e.explicitDest)){console.error('PDFLinkService.navigateTo: "'+e.explicitDest+'" is'+(' not a valid destination array, for dest="'+t+'".'));return}n(e)})}},{key:"getDestinationHash",value:function e(t){if(typeof t==="string"){return this.getAnchorUrl("#"+escape(t))}if(Array.isArray(t)){var r=JSON.stringify(t);return this.getAnchorUrl("#"+escape(r))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function e(t){return(this.baseUrl||"")+t}},{key:"setHash",value:function e(t){var r=void 0,n=void 0;if(t.includes("=")){var i=(0,s.parseQueryString)(t);if("search"in i){this.eventBus.dispatch("findfromurlhash",{source:this,query:i["search"].replace(/"/g,""),phraseSearch:i["phrase"]==="true"})}if("nameddest"in i){this.navigateTo(i.nameddest);return}if("page"in i){r=i.page|0||1}if("zoom"in i){var a=i.zoom.split(",");var o=a[0];var u=parseFloat(o);if(!o.includes("Fit")){n=[null,{name:"XYZ"},a.length>1?a[1]|0:null,a.length>2?a[2]|0:null,u?u/100:o]}else{if(o==="Fit"||o==="FitB"){n=[null,{name:o}]}else if(o==="FitH"||o==="FitBH"||o==="FitV"||o==="FitBV"){n=[null,{name:o},a.length>1?a[1]|0:null]}else if(o==="FitR"){if(a.length!==5){console.error('PDFLinkService.setHash: Not enough parameters for "FitR".')}else{n=[null,{name:o},a[1]|0,a[2]|0,a[3]|0,a[4]|0]}}else{console.error('PDFLinkService.setHash: "'+o+'" is not '+"a valid zoom value.")}}}if(n){this.pdfViewer.scrollPageIntoView({pageNumber:r||this.page,destArray:n,allowNegativeOffset:true})}else if(r){this.page=r}if("pagemode"in i){this.eventBus.dispatch("pagemode",{source:this,mode:i.pagemode})}}else{n=unescape(t);try{n=JSON.parse(n);if(!Array.isArray(n)){n=n.toString()}}catch(e){}if(typeof n==="string"||l(n)){this.navigateTo(n);return}console.error('PDFLinkService.setHash: "'+unescape(t)+'" is not '+"a valid destination.")}}},{key:"executeNamedAction",value:function e(t){switch(t){case"GoBack":if(this.pdfHistory){this.pdfHistory.back()}break;case"GoForward":if(this.pdfHistory){this.pdfHistory.forward()}break;case"NextPage":if(this.page<this.pagesCount){this.page++}break;case"PrevPage":if(this.page>1){this.page--}break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break;default:break}this.eventBus.dispatch("namedaction",{source:this,action:t})}},{key:"cachePageRef",value:function e(t,r){if(!r){return}var n=r.num+" "+r.gen+" R";this._pagesRefCache[n]=t}},{key:"_cachedPageNumber",value:function e(t){var r=t.num+" "+t.gen+" R";return this._pagesRefCache&&this._pagesRefCache[r]||null}},{key:"pagesCount",get:function e(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function e(){return this.pdfViewer.currentPageNumber},set:function e(t){this.pdfViewer.currentPageNumber=t}},{key:"rotation",get:function e(){return this.pdfViewer.pagesRotation},set:function e(t){this.pdfViewer.pagesRotation=t}}]);return e}();function l(e){if(!Array.isArray(e)){return false}var t=e.length,r=true;if(t<2){return false}var i=e[0];if(!((typeof i==="undefined"?"undefined":n(i))==="object"&&Number.isInteger(i.num)&&Number.isInteger(i.gen))&&!(Number.isInteger(i)&&i>=0)){return false}var a=e[1];if(!((typeof a==="undefined"?"undefined":n(a))==="object"&&typeof a.name==="string")){return false}switch(a.name){case"XYZ":if(t!==5){return false}break;case"Fit":case"FitB":return t===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(t!==3){return false}break;case"FitR":if(t!==6){return false}r=false;break;default:return false}for(var s=2;s<t;s++){var o=e[s];if(!(typeof o==="number"||r&&o===null)){return false}}return true}var c=function(){function e(){o(this,e);this.externalLinkTarget=null;this.externalLinkRel=null}i(e,[{key:"navigateTo",value:function e(t){}},{key:"getDestinationHash",value:function e(t){return"#"}},{key:"getAnchorUrl",value:function e(t){return"#"}},{key:"setHash",value:function e(t){}},{key:"executeNamedAction",value:function e(t){}},{key:"cachePageRef",value:function e(t,r){}},{key:"pagesCount",get:function e(){return 0}},{key:"page",get:function e(){return 0},set:function e(t){}},{key:"rotation",get:function e(){return 0},set:function e(t){}}]);return e}();t.PDFLinkService=u;t.SimpleLinkService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getGlobalEventBus=t.attachDOMEventsToEventBus=undefined;var n=r(377);function i(e){e.on("documentload",function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",true,true,{});window.dispatchEvent(e)});e.on("pagerendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",true,true,{pageNumber:e.pageNumber,cssTransform:e.cssTransform});e.source.div.dispatchEvent(t)});e.on("textlayerrendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",true,true,{pageNumber:e.pageNumber});e.source.textLayerDiv.dispatchEvent(t)});e.on("pagechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("pagechange",true,true,window,0);t.pageNumber=e.pageNumber;e.source.container.dispatchEvent(t)});e.on("pagesinit",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",true,true,null);e.source.container.dispatchEvent(t)});e.on("pagesloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",true,true,{pagesCount:e.pagesCount});e.source.container.dispatchEvent(t)});e.on("scalechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("scalechange",true,true,window,0);t.scale=e.scale;t.presetValue=e.presetValue;e.source.container.dispatchEvent(t)});e.on("updateviewarea",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("updateviewarea",true,true,window,0);t.location=e.location;e.source.container.dispatchEvent(t)});e.on("find",function(e){if(e.source===window){return}var t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,true,true,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious});window.dispatchEvent(t)});e.on("attachmentsloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",true,true,{attachmentsCount:e.attachmentsCount});e.source.container.dispatchEvent(t)});e.on("sidebarviewchanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",true,true,{view:e.view});e.source.outerContainer.dispatchEvent(t)});e.on("pagemode",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",true,true,{mode:e.mode});e.source.pdfViewer.container.dispatchEvent(t)});e.on("namedaction",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",true,true,{action:e.action});e.source.pdfViewer.container.dispatchEvent(t)});e.on("presentationmodechanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",true,true,{active:e.active,switchInProgress:e.switchInProgress});window.dispatchEvent(t)});e.on("outlineloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",true,true,{outlineCount:e.outlineCount});e.source.container.dispatchEvent(t)})}var a=null;function s(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(!a){a=new n.EventBus({dispatchToDOM:e});if(!e){i(a)}}return a}t.attachDOMEventsToEventBus=i;t.getGlobalEventBus=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveToEndOfArray=t.waitOnEventOrTimeout=t.WaitOnType=t.animationStarted=t.normalizeWheelEventDelta=t.binarySearchFirstItem=t.watchScroll=t.scrollIntoView=t.getOutputScale=t.approximateFraction=t.getPageSizeInches=t.roundToDivide=t.getVisibleElements=t.backtrackBeforeAllVisibleElements=t.parseQueryString=t.noContextMenuHandler=t.getPDFFileNameFromURL=t.ProgressBar=t.EventBus=t.NullL10n=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.isPortraitOrientation=t.isValidRotation=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=undefined;var n=r(360);var i=u(n);var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var s=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(){function e(e,t){var r=[];var n=true;var i=false;var a=undefined;try{for(var s=e[Symbol.iterator](),o;!(n=(o=s.next()).done);n=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;a=e}finally{try{if(!n&&s["return"])s["return"]()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t)){return t}else if(Symbol.iterator in Object(t)){return e(t,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function c(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(i,a){try{var s=t[i](a);var o=s.value}catch(e){r(e);return}if(s.done){e(o)}else{return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)})}}return n("next")})}}var f=96/72;var h="auto";var d=1;var v=.1;var p=10;var m=0;var g=1.25;var y=40;var b=5;var _={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};var S={CANVAS:"canvas",SVG:"svg"};var A={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};function w(e,t){if(!t){return e}return e.replace(/\{\{\s*(\w+)\s*\}\}/g,function(e,r){return r in t?t[r]:"{{"+r+"}}"})}var x={getLanguage:function(){var e=c(i.default.mark(function e(){return i.default.wrap(function e(t){while(1){switch(t.prev=t.next){case 0:return t.abrupt("return","en-us");case 1:case"end":return t.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),getDirection:function(){var e=c(i.default.mark(function e(){return i.default.wrap(function e(t){while(1){switch(t.prev=t.next){case 0:return t.abrupt("return","ltr");case 1:case"end":return t.stop()}}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),get:function(){var e=c(i.default.mark(function e(t,r,n){return i.default.wrap(function e(t){while(1){switch(t.prev=t.next){case 0:return t.abrupt("return",w(n,r));case 1:case"end":return t.stop()}}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),translate:function(){var e=c(i.default.mark(function e(t){return i.default.wrap(function e(t){while(1){switch(t.prev=t.next){case 0:case"end":return t.stop()}}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()};function k(e){var t=window.devicePixelRatio||1;var r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;var n=t/r;return{sx:n,sy:n,scaled:n!==1}}function P(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n=e.offsetParent;if(!n){console.error("offsetParent is not set -- cannot scroll");return}var i=e.offsetTop+e.clientTop;var a=e.offsetLeft+e.clientLeft;while(n.clientHeight===n.scrollHeight&&n.clientWidth===n.scrollWidth||r&&getComputedStyle(n).overflow==="hidden"){if(n.dataset._scaleY){i/=n.dataset._scaleY;a/=n.dataset._scaleX}i+=n.offsetTop;a+=n.offsetLeft;n=n.offsetParent;if(!n){return}}if(t){if(t.top!==undefined){i+=t.top}if(t.left!==undefined){a+=t.left;n.scrollLeft=a}}n.scrollTop=i}function C(e,t){var r=function r(a){if(i){return}i=window.requestAnimationFrame(function r(){i=null;var a=e.scrollLeft;var s=n.lastX;if(a!==s){n.right=a>s}n.lastX=a;var o=e.scrollTop;var u=n.lastY;if(o!==u){n.down=o>u}n.lastY=o;t(n)})};var n={right:true,down:true,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r};var i=null;e.addEventListener("scroll",r,true);return n}function R(e){var t=e.split("&");var r=Object.create(null);for(var n=0,i=t.length;n<i;++n){var a=t[n].split("=");var s=a[0].toLowerCase();var o=a.length>1?a[1]:null;r[decodeURIComponent(s)]=decodeURIComponent(o)}return r}function E(e,t){var r=0;var n=e.length-1;if(e.length===0||!t(e[n])){return e.length}if(t(e[r])){return r}while(r<n){var i=r+n>>1;var a=e[i];if(t(a)){n=i}else{r=i+1}}return r}function T(e){if(Math.floor(e)===e){return[e,1]}var t=1/e;var r=8;if(t>r){return[1,r]}else if(Math.floor(t)===t){return[1,t]}var n=e>1?t:e;var i=0,a=1,s=1,o=1;while(true){var u=i+s,l=a+o;if(l>r){break}if(n<=u/l){s=u;o=l}else{i=u;a=l}}var c=void 0;if(n-i/a<s/o-n){c=n===e?[i,a]:[a,i]}else{c=n===e?[s,o]:[o,s]}return c}function O(e,t){var r=e%t;return r===0?e:Math.round(e-r+t)}function I(e){var t=e.view,r=e.userUnit,n=e.rotate;var i=o(t,4),a=i[0],s=i[1],u=i[2],l=i[3];var c=n%180!==0;var f=(u-a)/72*r;var h=(l-s)/72*r;return{width:c?h:f,height:c?f:h}}function F(e,t,r){if(e<2){return e}var n=t[e].div;var i=n.offsetTop+n.clientTop;if(i>=r){n=t[e-1].div;i=n.offsetTop+n.clientTop}for(var a=e-2;a>=0;--a){n=t[a].div;if(n.offsetTop+n.clientTop+n.clientHeight<=i){break}e=a}return e}function L(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var i=e.scrollTop,a=i+e.clientHeight;var s=e.scrollLeft,o=s+e.clientWidth;function u(e){var t=e.div;var r=t.offsetTop+t.clientTop+t.clientHeight;return r>i}function l(e){var t=e.div;var r=t.offsetLeft+t.clientLeft+t.clientWidth;return r>s}var c=[],f=void 0,h=void 0;var d=void 0,v=void 0,p=void 0,m=void 0;var g=void 0,y=void 0,b=void 0,_=void 0;var S=void 0;var A=t.length===0?0:E(t,n?l:u);if(t.length>0&&!n){A=F(A,t,i)}var w=n?o:-1;for(var x=A,k=t.length;x<k;x++){f=t[x];h=f.div;g=h.offsetLeft+h.clientLeft;d=h.offsetTop+h.clientTop;y=h.clientWidth;v=h.clientHeight;b=g+y;p=d+v;if(w===-1){if(p>=a){w=p}}else if((n?g:d)>w){break}if(p<=i||d>=a||b<=s||g>=o){continue}m=Math.max(0,i-d)+Math.max(0,p-a);_=Math.max(0,s-g)+Math.max(0,b-o);S=(v-m)*(y-_)*100/v/y|0;c.push({id:f.id,x:g,y:d,view:f,percent:S})}var P=c[0];var C=c[c.length-1];if(r){c.sort(function(e,t){var r=e.percent-t.percent;if(Math.abs(r)>.001){return-r}return e.id-t.id})}return{first:P,last:C,views:c}}function M(e){e.preventDefault()}function N(e){var t=0,r=e.length;while(t<r&&e[t].trim()===""){t++}return e.substring(t,t+5).toLowerCase()==="data:"}function j(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"document.pdf";if(typeof e!=="string"){return t}if(N(e)){console.warn("getPDFFileNameFromURL: "+'ignoring "data:" URL for performance reasons.');return t}var r=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/;var n=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i;var i=r.exec(e);var a=n.exec(i[1])||n.exec(i[2])||n.exec(i[3]);if(a){a=a[0];if(a.includes("%")){try{a=n.exec(decodeURIComponent(a))[0]}catch(e){}}}return a||t}function D(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY);var r=Math.atan2(e.deltaY,e.deltaX);if(-.25*Math.PI<r&&r<.75*Math.PI){t=-t}var n=0;var i=1;var a=30;var s=30;if(e.deltaMode===n){t/=a*s}else if(e.deltaMode===i){t/=s}return t}function q(e){return Number.isInteger(e)&&e%90===0}function U(e){return e.width<=e.height}var W={EVENT:"event",TIMEOUT:"timeout"};function B(e){var t=e.target,r=e.name,n=e.delay,i=n===undefined?0:n;return new Promise(function(e,n){if((typeof t==="undefined"?"undefined":s(t))!=="object"||!(r&&typeof r==="string")||!(Number.isInteger(i)&&i>=0)){throw new Error("waitOnEventOrTimeout - invalid parameters.")}function a(n){if(t instanceof z){t.off(r,o)}else{t.removeEventListener(r,o)}if(l){clearTimeout(l)}e(n)}var o=a.bind(null,W.EVENT);if(t instanceof z){t.on(r,o)}else{t.addEventListener(r,o)}var u=a.bind(null,W.TIMEOUT);var l=setTimeout(u,i)})}var G=new Promise(function(e){window.requestAnimationFrame(e)});var z=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=t.dispatchToDOM,n=r===undefined?false:r;l(this,e);this._listeners=Object.create(null);this._dispatchToDOM=n===true}a(e,[{key:"on",value:function e(t,r){var n=this._listeners[t];if(!n){n=[];this._listeners[t]=n}n.push(r)}},{key:"off",value:function e(t,r){var n=this._listeners[t];var i=void 0;if(!n||(i=n.indexOf(r))<0){return}n.splice(i,1)}},{key:"dispatch",value:function e(t){var r=this._listeners[t];if(!r||r.length===0){if(this._dispatchToDOM){var n=Array.prototype.slice.call(arguments,1);this._dispatchDOMEvent(t,n)}return}var i=Array.prototype.slice.call(arguments,1);r.slice(0).forEach(function(e){e.apply(null,i)});if(this._dispatchToDOM){this._dispatchDOMEvent(t,i)}}},{key:"_dispatchDOMEvent",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!this._dispatchToDOM){return}var n=Object.create(null);if(r&&r.length>0){var i=r[0];for(var a in i){var s=i[a];if(a==="source"){if(s===window||s===document){return}continue}n[a]=s}}var o=document.createEvent("CustomEvent");o.initCustomEvent(t,true,true,n);document.dispatchEvent(o)}}]);return e}();function H(e,t,r){return Math.min(Math.max(e,t),r)}var X=function(){function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=r.height,i=r.width,a=r.units;l(this,e);this.visible=true;this.div=document.querySelector(t+" .progress");this.bar=this.div.parentNode;this.height=n||100;this.width=i||100;this.units=a||"%";this.div.style.height=this.height+this.units;this.percent=0}a(e,[{key:"_updateBar",value:function e(){if(this._indeterminate){this.div.classList.add("indeterminate");this.div.style.width=this.width+this.units;return}this.div.classList.remove("indeterminate");var t=this.width*this._percent/100;this.div.style.width=t+this.units}},{key:"setWidth",value:function e(t){if(!t){return}var r=t.parentNode;var n=r.offsetWidth-t.offsetWidth;if(n>0){this.bar.setAttribute("style","width: calc(100% - "+n+"px);")}}},{key:"hide",value:function e(){if(!this.visible){return}this.visible=false;this.bar.classList.add("hidden");document.body.classList.remove("loadingInProgress")}},{key:"show",value:function e(){if(this.visible){return}this.visible=true;document.body.classList.add("loadingInProgress");this.bar.classList.remove("hidden")}},{key:"percent",get:function e(){return this._percent},set:function e(t){this._indeterminate=isNaN(t);this._percent=H(t,0,100);this._updateBar()}}]);return e}();function V(e,t){var r=[],n=e.length;var i=0;for(var a=0;a<n;++a){if(t(e[a])){r.push(e[a])}else{e[i]=e[a];++i}}for(var s=0;i<n;++s,++i){e[i]=r[s]}}t.CSS_UNITS=f;t.DEFAULT_SCALE_VALUE=h;t.DEFAULT_SCALE=d;t.MIN_SCALE=v;t.MAX_SCALE=p;t.UNKNOWN_SCALE=m;t.MAX_AUTO_SCALE=g;t.SCROLLBAR_PADDING=y;t.VERTICAL_PADDING=b;t.isValidRotation=q;t.isPortraitOrientation=U;t.PresentationModeState=_;t.RendererType=S;t.TextLayerMode=A;t.NullL10n=x;t.EventBus=z;t.ProgressBar=X;t.getPDFFileNameFromURL=j;t.noContextMenuHandler=M;t.parseQueryString=R;t.backtrackBeforeAllVisibleElements=F;t.getVisibleElements=L;t.roundToDivide=O;t.getPageSizeInches=I;t.approximateFraction=T;t.getOutputScale=k;t.scrollIntoView=P;t.watchScroll=C;t.binarySearchFirstItem=E;t.normalizeWheelEventDelta=D;t.animationStarted=G;t.WaitOnType=W;t.waitOnEventOrTimeout=B;t.moveToEndOfArray=V}])});
//# sourceMappingURL=pdf.map.js